Record Class MutatedOnlyVariables.Source.Expr
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.MutatedOnlyVariables.Source.Expr
- All Implemented Interfaces:
MutatedOnlyVariables.Source
- Enclosing interface:
MutatedOnlyVariables.Source
public static record MutatedOnlyVariables.Source.Expr(EK9Parser.ExpressionContext expression)
extends Record
implements MutatedOnlyVariables.Source
The expression of a reference assignment (
mine <- items, iter := mine.iterator()).-
Nested Class Summary
Nested classes/interfaces inherited from interface MutatedOnlyVariables.Source
MutatedOnlyVariables.Source.Captures, MutatedOnlyVariables.Source.Elements, MutatedOnlyVariables.Source.Expr, MutatedOnlyVariables.Source.Variable -
Constructor Summary
ConstructorsConstructorDescriptionExpr(EK9Parser.ExpressionContext expression) Creates an instance of aExprrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Expr
Creates an instance of aExprrecord class.- Parameters:
expression- the value for theexpressionrecord component
-
-
Method Details
-
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). -
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-