Record Class StatementOwnedCloseables.OwnedEvaluation
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.StatementOwnedCloseables.OwnedEvaluation
- Record Components:
instructions- the evaluation, wrapped when it owns a temporaryresultVariable- the variable holding the evaluation's value after themowning- whether it was wrapped (it owns at least one temporary)
- Enclosing class:
StatementOwnedCloseables
-
Constructor Summary
ConstructorsConstructorDescriptionOwnedEvaluation(List<IRInstr> instructions, String resultVariable, boolean owning) Creates an instance of aOwnedEvaluationrecord 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 theinstructionsrecord component.booleanowning()Returns the value of theowningrecord component.Returns the value of theresultVariablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OwnedEvaluation
Creates an instance of aOwnedEvaluationrecord class.- Parameters:
instructions- the value for theinstructionsrecord componentresultVariable- the value for theresultVariablerecord componentowning- the value for theowningrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
resultVariable
Returns the value of theresultVariablerecord component.- Returns:
- the value of the
resultVariablerecord component
-
owning
-