Record Class MutatedOnlyVariables.Deferred
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.MutatedOnlyVariables.Deferred
- Enclosing class:
MutatedOnlyVariables
static record MutatedOnlyVariables.Deferred(ParsedModule parsedModule, ISymbol variable, EK9Parser.ExpressionContext initialiser)
extends Record
A deferred local and the expression it was initialised by.
-
Constructor Summary
ConstructorsConstructorDescriptionDeferred(ParsedModule parsedModule, ISymbol variable, EK9Parser.ExpressionContext initialiser) Creates an instance of aDeferredrecord 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.Returns the value of theinitialiserrecord component.Returns the value of theparsedModulerecord component.final StringtoString()Returns a string representation of this record class.variable()Returns the value of thevariablerecord component.
-
Constructor Details
-
Deferred
Deferred(ParsedModule parsedModule, ISymbol variable, EK9Parser.ExpressionContext initialiser) Creates an instance of aDeferredrecord class.- Parameters:
parsedModule- the value for theparsedModulerecord componentvariable- the value for thevariablerecord componentinitialiser- the value for theinitialiserrecord 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). -
parsedModule
Returns the value of theparsedModulerecord component.- Returns:
- the value of the
parsedModulerecord component
-
variable
Returns the value of thevariablerecord component.- Returns:
- the value of the
variablerecord component
-
initialiser
Returns the value of theinitialiserrecord component.- Returns:
- the value of the
initialiserrecord component
-