Record Class EnumIteratorImplDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.data.EnumIteratorImplDetails
- Record Components:
enumTypeName- Fully qualified name of the enumeration type (e.g., "module::Colour")superTypeName- Fully qualified name of the parameterized Iterator type to extend (e.g., "_Iterator_HASH..." - the Scenario 2 wrapper type)enumValues- List of enum value names in declaration order (e.g., ["Red", "Green", "Blue"])resultVariable- Variable name to store the iterator instancedebugInfo- Debug information for source mapping
public record EnumIteratorImplDetails(String enumTypeName, String superTypeName, List<String> enumValues, String resultVariable, DebugInfo debugInfo)
extends Record
Details for the ENUM_ITERATOR_IMPL IR instruction.
Contains all information needed by backends to generate an efficient iterator implementation for an enumeration type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedebugInforecord component.Returns the value of theenumTypeNamerecord component.intGet the number of enum values.Returns the value of theenumValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanCheck if there are any enum values.final inthashCode()Returns a hash code value for this object.Returns the value of theresultVariablerecord component.Returns the value of thesuperTypeNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnumIteratorImplDetails
-
-
Method Details
-
enumValueCount
public int enumValueCount()Get the number of enum values. -
hasEnumValues
public boolean hasEnumValues()Check if there are any enum values. -
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). -
enumTypeName
Returns the value of theenumTypeNamerecord component.- Returns:
- the value of the
enumTypeNamerecord component
-
superTypeName
Returns the value of thesuperTypeNamerecord component.- Returns:
- the value of the
superTypeNamerecord component
-
enumValues
Returns the value of theenumValuesrecord component.- Returns:
- the value of the
enumValuesrecord component
-
resultVariable
Returns the value of theresultVariablerecord component.- Returns:
- the value of the
resultVariablerecord component
-
debugInfo
-