Record Class MutatedOnlyVariables.Source.Variable
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.MutatedOnlyVariables.Source.Variable
- All Implemented Interfaces:
MutatedOnlyVariables.Source
- Enclosing interface:
MutatedOnlyVariables.Source
public static record MutatedOnlyVariables.Source.Variable(ISymbol variable)
extends Record
implements MutatedOnlyVariables.Source
Another local whose object it ends with: the returning variable of an arm-shaped value it was assigned.
-
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
Constructors -
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.final StringtoString()Returns a string representation of this record class.variable()Returns the value of thevariablerecord component.
-
Constructor Details
-
Variable
Creates an instance of aVariablerecord class.- Parameters:
variable- the value for thevariablerecord 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). -
variable
Returns the value of thevariablerecord component.- Returns:
- the value of the
variablerecord component
-