Record Class SelfReferenceStore.CaptureAssignment
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.SelfReferenceStore.CaptureAssignment
- Record Components:
statement- the assignment statementproperty- the property it sets
- Enclosing class:
SelfReferenceStore
public static record SelfReferenceStore.CaptureAssignment(EK9Parser.AssignmentStatementContext statement, ISymbol property)
extends Record
A statement that gives one of the object's own properties a dynamic function or class capturing 'this'.
-
Constructor Summary
ConstructorsConstructorDescriptionCaptureAssignment(EK9Parser.AssignmentStatementContext statement, ISymbol property) Creates an instance of aCaptureAssignmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanTrue when this statement comes after the other one: it starts after the other ends.property()Returns the value of thepropertyrecord component.Returns the value of thestatementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isAfter
True when this statement comes after the other one: it starts after the other ends. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
statement
-
property
-