Record Class ForRangePolymorphicInstr.ValueGuard
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.instructions.ForRangePolymorphicInstr.ValueGuard
- Enclosing class:
ForRangePolymorphicInstr
public static record ForRangePolymorphicInstr.ValueGuard(List<IRInstr> evaluation, String primitive)
extends Record
Whether this iteration's loop value is usable:
evaluation is run right after the loop variable is set up
and the body is skipped (the iteration still reaches its end check and increment) unless primitive is
true. Present only for a range over a CONSTRAINED type, whose loop value is made by the constrained type's
non-Panicking of(base) - unset for a counter value that breaks the constraint (a hole inside the range).-
Constructor Summary
ConstructorsConstructorDescriptionValueGuard(List<IRInstr> evaluation, String primitive) Creates an instance of aValueGuardrecord 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
-
ValueGuard
-
-
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
-