Record Class ForRangePolymorphicInstr.ContinueCondition
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.instructions.ForRangePolymorphicInstr.ContinueCondition
- Enclosing class:
ForRangePolymorphicInstr
public static record ForRangePolymorphicInstr.ContinueCondition(List<IRInstr> evaluation, String primitive)
extends Record
An extra condition evaluated at the top of every iteration, before the range test:
evaluation is
run, then the loop ends unless primitive is true. Back ends emit it in all three dispatch cases.-
Constructor Summary
ConstructorsConstructorDescriptionContinueCondition(List<IRInstr> evaluation, String primitive) Creates an instance of aContinueConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprimitiverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContinueCondition
-
-
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). -
evaluation
-
primitive
Returns the value of theprimitiverecord component.- Returns:
- the value of the
primitiverecord component
-