Record Class IteratorSetup
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.IteratorSetup
record IteratorSetup(String variable, IAggregateSymbol type, String collectionVar, IAggregateSymbol collectionType)
extends Record
Helper record for iterator setup results.
Includes collection variable and type for stages that need collection metadata (e.g., TAIL).
-
Constructor Summary
ConstructorsConstructorDescriptionIteratorSetup(String variable, IAggregateSymbol type, String collectionVar, IAggregateSymbol collectionType) Creates an instance of aIteratorSetuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionTyperecord component.Returns the value of thecollectionVarrecord 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.type()Returns the value of thetyperecord component.variable()Returns the value of thevariablerecord component.
-
Constructor Details
-
IteratorSetup
IteratorSetup(String variable, IAggregateSymbol type, String collectionVar, IAggregateSymbol collectionType) Creates an instance of aIteratorSetuprecord class.- Parameters:
variable- the value for thevariablerecord componenttype- the value for thetyperecord componentcollectionVar- the value for thecollectionVarrecord componentcollectionType- the value for thecollectionTyperecord 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). -
variable
Returns the value of thevariablerecord component.- Returns:
- the value of the
variablerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
collectionVar
Returns the value of thecollectionVarrecord component.- Returns:
- the value of the
collectionVarrecord component
-
collectionType
Returns the value of thecollectionTyperecord component.- Returns:
- the value of the
collectionTyperecord component
-