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 aPromotedVariable
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PromotedVariable
Create a non-promoted variable (direct use, no promotion needed).final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinstructions
record component.static PromotedVariable
Create a promoted variable result.final String
toString()
Returns a string representation of this record class.variable()
Returns the value of thevariable
record 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 thevariable
record component.- Returns:
- the value of the
variable
record component
-
instructions
-