Record Class ForRangePolymorphicInstr.LoopMetadata
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.instructions.ForRangePolymorphicInstr.LoopMetadata
- Enclosing class:
ForRangePolymorphicInstr
public static record ForRangePolymorphicInstr.LoopMetadata(String directionVariable, String currentVariable, String loopVariable, String endVariable, String rangeType, String byVariable, String byType)
extends Record
Non-executable metadata about the loop structure.
Used for reference and debugging, not for code generation.
All actual code generation uses explicit IR sequences in DispatchCases.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyType()Returns the value of thebyTyperecord component.Returns the value of thebyVariablerecord component.Returns the value of thecurrentVariablerecord component.Returns the value of thedirectionVariablerecord component.Returns the value of theendVariablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theloopVariablerecord component.Returns the value of therangeTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoopMetadata
public LoopMetadata(String directionVariable, String currentVariable, String loopVariable, String endVariable, String rangeType, String byVariable, String byType) Creates an instance of aLoopMetadatarecord class.- Parameters:
directionVariable- the value for thedirectionVariablerecord componentcurrentVariable- the value for thecurrentVariablerecord componentloopVariable- the value for theloopVariablerecord componentendVariable- the value for theendVariablerecord componentrangeType- the value for therangeTyperecord componentbyVariable- the value for thebyVariablerecord componentbyType- the value for thebyTyperecord 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). -
directionVariable
Returns the value of thedirectionVariablerecord component.- Returns:
- the value of the
directionVariablerecord component
-
currentVariable
Returns the value of thecurrentVariablerecord component.- Returns:
- the value of the
currentVariablerecord component
-
loopVariable
Returns the value of theloopVariablerecord component.- Returns:
- the value of the
loopVariablerecord component
-
endVariable
Returns the value of theendVariablerecord component.- Returns:
- the value of the
endVariablerecord component
-
rangeType
Returns the value of therangeTyperecord component.- Returns:
- the value of the
rangeTyperecord component
-
byVariable
Returns the value of thebyVariablerecord component.- Returns:
- the value of the
byVariablerecord component
-
byType
Returns the value of thebyTyperecord component.- Returns:
- the value of the
byTyperecord component
-