Record Class CalleeRetention.Argument
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.retention.CalleeRetention.Argument
- Record Components:
holders- the holders that may come to hold it or a part of it:RetentionRule.RECEIVERor a parameter's nameambient- it may be kept somewhere no argument names (ambient,unimplemented)handedBack- it, or a part of it, may be the result
- Enclosing class:
CalleeRetention
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CalleeRetention.ArgumentKept nowhere, handed back never. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanambient()Returns the value of theambientrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehandedBackrecord component.final inthashCode()Returns a hash code value for this object.holders()Returns the value of theholdersrecord component.booleankept()Is the argument kept anywhere beyond the result.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NOTHING
Kept nowhere, handed back never.
-
-
Constructor Details
-
Argument
Creates an instance of aArgumentrecord class.- Parameters:
holders- the value for theholdersrecord componentambient- the value for theambientrecord componenthandedBack- the value for thehandedBackrecord component
-
-
Method Details
-
kept
public boolean kept()Is the argument kept anywhere beyond the result. -
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. -
holders
-
ambient
-
handedBack
public boolean handedBack()Returns the value of thehandedBackrecord component.- Returns:
- the value of the
handedBackrecord component
-