Record Class ListLiteralDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.data.ListLiteralDetails
- Record Components:
collectionTypeFqn- Parameterized list type FQN (e.g., "org.ek9.lang::_List_HASH")elementTypeFqn- Element type FQN for method signatures (e.g., "org.ek9.lang::String")elementTemps- Temp variable names holding evaluated elements in orderelementCount- Compile-time known element count for pre-sizingscopeId- Memory management scope for element cleanup
public record ListLiteralDetails(String collectionTypeFqn, String elementTypeFqn, List<String> elementTemps, int elementCount, String scopeId)
extends Record
Details for the LIST_LITERAL IR instruction.
Contains compile-time known information for optimal list construction. Backends use element count for pre-sized allocation (JVM ArrayList(N), LLVM single allocation) and element temps for bulk population.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionTypeFqnrecord component.intReturns the value of theelementCountrecord component.Returns the value of theelementTempsrecord component.Returns the value of theelementTypeFqnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.scopeId()Returns the value of thescopeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ListLiteralDetails
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
collectionTypeFqn
Returns the value of thecollectionTypeFqnrecord component.- Returns:
- the value of the
collectionTypeFqnrecord component
-
elementTypeFqn
Returns the value of theelementTypeFqnrecord component.- Returns:
- the value of the
elementTypeFqnrecord component
-
elementTemps
Returns the value of theelementTempsrecord component.- Returns:
- the value of the
elementTempsrecord component
-
elementCount
public int elementCount()Returns the value of theelementCountrecord component.- Returns:
- the value of the
elementCountrecord component
-
scopeId
-