Record Class CalleeRetention.Facts
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.retention.CalleeRetention.Facts
- Record Components:
unknown- the callee declaresunknown: nothing may be assumed about anything it is givenparameterNames- its declared parameters, in orderarguments- what becomes of each argument, by indexreceiverKeptInto- the parameters the receiver (or a part of it) is kept intoreceiverAmbient- the receiver is kept somewhere no argument namesresultAliasesReceiver- the result may be a view of the receiver (return <- receiver-interior, or the receiver itself,return <- receiver)undeclaredExternResult- the result of an extern declaring nothing, able to reach a user object (D7')declaresNothing- no RETAINS text at all - neither declared nor derived; what that means depends on the callee: the audited extern keeps nothing, a user constructor was never derived
- Enclosing class:
CalleeRetention
public static record CalleeRetention.Facts(boolean unknown, List<String> parameterNames, List<CalleeRetention.Argument> arguments, List<String> receiverKeptInto, boolean receiverAmbient, boolean resultAliasesReceiver, boolean undeclaredExternResult, boolean declaresNothing)
extends Record
The escape facts of one callee.
-
Constructor Summary
ConstructorsConstructorDescriptionFacts(boolean unknown, List<String> parameterNames, List<CalleeRetention.Argument> arguments, List<String> receiverKeptInto, boolean receiverAmbient, boolean resultAliasesReceiver, boolean undeclaredExternResult, boolean declaresNothing) Creates an instance of aFactsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargument(int index) What becomes of the argument atindex; a position the callee does not declare keeps nothing.Returns the value of theargumentsrecord component.booleanReturns the value of thedeclaresNothingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparameterNamesrecord component.booleanReturns the value of thereceiverAmbientrecord component.Returns the value of thereceiverKeptIntorecord component.booleanReturns the value of theresultAliasesReceiverrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theundeclaredExternResultrecord component.booleanunknown()Returns the value of theunknownrecord component.
-
Constructor Details
-
Facts
public Facts(boolean unknown, List<String> parameterNames, List<CalleeRetention.Argument> arguments, List<String> receiverKeptInto, boolean receiverAmbient, boolean resultAliasesReceiver, boolean undeclaredExternResult, boolean declaresNothing) Creates an instance of aFactsrecord class.- Parameters:
unknown- the value for theunknownrecord componentparameterNames- the value for theparameterNamesrecord componentarguments- the value for theargumentsrecord componentreceiverKeptInto- the value for thereceiverKeptIntorecord componentreceiverAmbient- the value for thereceiverAmbientrecord componentresultAliasesReceiver- the value for theresultAliasesReceiverrecord componentundeclaredExternResult- the value for theundeclaredExternResultrecord componentdeclaresNothing- the value for thedeclaresNothingrecord component
-
-
Method Details
-
argument
What becomes of the argument atindex; a position the callee does not declare keeps nothing. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
unknown
-
parameterNames
Returns the value of theparameterNamesrecord component.- Returns:
- the value of the
parameterNamesrecord component
-
arguments
-
receiverKeptInto
Returns the value of thereceiverKeptIntorecord component.- Returns:
- the value of the
receiverKeptIntorecord component
-
receiverAmbient
public boolean receiverAmbient()Returns the value of thereceiverAmbientrecord component.- Returns:
- the value of the
receiverAmbientrecord component
-
resultAliasesReceiver
public boolean resultAliasesReceiver()Returns the value of theresultAliasesReceiverrecord component.- Returns:
- the value of the
resultAliasesReceiverrecord component
-
undeclaredExternResult
public boolean undeclaredExternResult()Returns the value of theundeclaredExternResultrecord component.- Returns:
- the value of the
undeclaredExternResultrecord component
-
declaresNothing
public boolean declaresNothing()Returns the value of thedeclaresNothingrecord component.- Returns:
- the value of the
declaresNothingrecord component
-