Record Class GuardedConditionEvaluator.ConditionEvaluation
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.GuardedConditionEvaluator.ConditionEvaluation
- Record Components:
instructions- IR instructions to evaluate the conditionprimitiveCondition- Name of primitive boolean variable for backend branching
- Enclosing class:
GuardedConditionEvaluator
public static record GuardedConditionEvaluator.ConditionEvaluation(List<IRInstr> instructions, String primitiveCondition)
extends Record
Result of condition evaluation containing both instructions and primitive condition.
The instructions are the IR instructions to evaluate the condition (including guard checks). The primitiveCondition is the name of a primitive boolean variable for backend branching.
-
Constructor Summary
ConstructorsConstructorDescriptionConditionEvaluation(List<IRInstr> instructions, String primitiveCondition) Creates an instance of aConditionEvaluationrecord 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.Returns the value of theprimitiveConditionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConditionEvaluation
Creates an instance of aConditionEvaluationrecord class.- Parameters:
instructions- the value for theinstructionsrecord componentprimitiveCondition- the value for theprimitiveConditionrecord 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). -
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
primitiveCondition
Returns the value of theprimitiveConditionrecord component.- Returns:
- the value of the
primitiveConditionrecord component
-