Record Class PromotedVariable
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.PromotedVariable
-
Constructor Summary
ConstructorsConstructorDescriptionPromotedVariable(String variable, List<IRInstr> instructions) Creates an instance of aPromotedVariablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PromotedVariableCreate a non-promoted variable (direct use, no promotion needed).final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructionsrecord component.static PromotedVariableCreate a promoted variable result.final StringtoString()Returns a string representation of this record class.variable()Returns the value of thevariablerecord component.
-
Constructor Details
-
PromotedVariable
-
-
Method Details
-
of
Create a promoted variable result. -
direct
Create a non-promoted variable (direct use, no promotion needed). -
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
-
instructions
-