Record Class RangeIterationHelper.InitializationData
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.RangeIterationHelper.InitializationData
- Enclosing class:
RangeIterationHelper
static record RangeIterationHelper.InitializationData(List<IRInstr> instructions, String endTemp, String byTemp, String directionTemp, String currentTemp, ISymbol rangeType, ISymbol byType, ISymbol constrainedBase, String startTemp, boolean progressChecked)
extends Record
Helper record to pass initialization data between methods.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializationData(List<IRInstr> instructions, String endTemp, String byTemp, String directionTemp, String currentTemp, ISymbol rangeType, ISymbol byType, ISymbol constrainedBase, String startTemp, boolean progressChecked) Creates an instance of aInitializationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyTemp()Returns the value of thebyTemprecord component.byType()Returns the value of thebyTyperecord component.Returns the value of theconstrainedBaserecord component.(package private) ISymbolThe type the counter, the end copy and the direction probe are held in: the base of a constrained range type, else the range type itself.Returns the value of thecurrentTemprecord component.Returns the value of thedirectionTemprecord component.endTemp()Returns the value of theendTemprecord 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 theinstructionsrecord component.booleanReturns the value of theprogressCheckedrecord component.Returns the value of therangeTyperecord component.Returns the value of thestartTemprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InitializationData
InitializationData(List<IRInstr> instructions, String endTemp, String byTemp, String directionTemp, String currentTemp, ISymbol rangeType, ISymbol byType, ISymbol constrainedBase, String startTemp, boolean progressChecked) Creates an instance of aInitializationDatarecord class.- Parameters:
instructions- the value for theinstructionsrecord componentendTemp- the value for theendTemprecord componentbyTemp- the value for thebyTemprecord componentdirectionTemp- the value for thedirectionTemprecord componentcurrentTemp- the value for thecurrentTemprecord componentrangeType- the value for therangeTyperecord componentbyType- the value for thebyTyperecord componentconstrainedBase- the value for theconstrainedBaserecord componentstartTemp- the value for thestartTemprecord componentprogressChecked- the value for theprogressCheckedrecord component
-
-
Method Details
-
counterType
ISymbol counterType()The type the counter, the end copy and the direction probe are held in: the base of a constrained range type, else the range type itself. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
instructions
-
endTemp
Returns the value of theendTemprecord component.- Returns:
- the value of the
endTemprecord component
-
byTemp
Returns the value of thebyTemprecord component.- Returns:
- the value of the
byTemprecord component
-
directionTemp
Returns the value of thedirectionTemprecord component.- Returns:
- the value of the
directionTemprecord component
-
currentTemp
Returns the value of thecurrentTemprecord component.- Returns:
- the value of the
currentTemprecord component
-
rangeType
Returns the value of therangeTyperecord component.- Returns:
- the value of the
rangeTyperecord component
-
byType
Returns the value of thebyTyperecord component.- Returns:
- the value of the
byTyperecord component
-
constrainedBase
Returns the value of theconstrainedBaserecord component.- Returns:
- the value of the
constrainedBaserecord component
-
startTemp
Returns the value of thestartTemprecord component.- Returns:
- the value of the
startTemprecord component
-
progressChecked
public boolean progressChecked()Returns the value of theprogressCheckedrecord component.- Returns:
- the value of the
progressCheckedrecord component
-