Record Class ForRangePolymorphicInstr.DispatchCases
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.instructions.ForRangePolymorphicInstr.DispatchCases
- Enclosing class:
ForRangePolymorphicInstr
public static record ForRangePolymorphicInstr.DispatchCases(ForRangePolymorphicInstr.AscendingCase ascending, ForRangePolymorphicInstr.DescendingCase descending, ForRangePolymorphicInstr.EqualCase equal)
extends Record
Container for all three dispatch cases in a for-range loop.
Each case contains explicit IR sequences for dispatch logic.
-
Constructor Summary
ConstructorsConstructorDescriptionDispatchCases(ForRangePolymorphicInstr.AscendingCase ascending, ForRangePolymorphicInstr.DescendingCase descending, ForRangePolymorphicInstr.EqualCase equal) Creates an instance of aDispatchCasesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theascendingrecord component.Returns the value of thedescendingrecord component.equal()Returns the value of theequalrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DispatchCases
public DispatchCases(ForRangePolymorphicInstr.AscendingCase ascending, ForRangePolymorphicInstr.DescendingCase descending, ForRangePolymorphicInstr.EqualCase equal) Creates an instance of aDispatchCasesrecord class.- Parameters:
ascending- the value for theascendingrecord componentdescending- the value for thedescendingrecord componentequal- the value for theequalrecord 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). -
ascending
Returns the value of theascendingrecord component.- Returns:
- the value of the
ascendingrecord component
-
descending
Returns the value of thedescendingrecord component.- Returns:
- the value of the
descendingrecord component
-
equal
Returns the value of theequalrecord component.- Returns:
- the value of the
equalrecord component
-