Record Class DictLiteralDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.data.DictLiteralDetails
- Record Components:
collectionTypeFqn- Parameterized dict type FQN (e.g., "org.ek9.lang::_Dict_HASH")entryTypeFqn- Parameterized DictEntry type FQN (e.g., "org.ek9.lang::_DictEntry_HASH")keyTypeFqn- Key type FQN for DictEntry constructor (e.g., "org.ek9.lang::String")valueTypeFqn- Value type FQN for DictEntry constructor (e.g., "org.ek9.lang::Integer")entries- Key-value temp variable pairs in orderentryCount- Compile-time known entry count for pre-sizingscopeId- Memory management scope for key/value cleanup
public record DictLiteralDetails(String collectionTypeFqn, String entryTypeFqn, String keyTypeFqn, String valueTypeFqn, List<DictLiteralDetails.DictLiteralEntry> entries, int entryCount, String scopeId)
extends Record
Details for the DICT_LITERAL IR instruction.
Contains compile-time known information for optimal dict construction.
Backends use entry count for pre-sized allocation and key/value temps
for population via DictEntry construction and _addAss(DictEntry).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA single key-value pair in a dict literal. -
Constructor Summary
ConstructorsConstructorDescriptionDictLiteralDetails(String collectionTypeFqn, String entryTypeFqn, String keyTypeFqn, String valueTypeFqn, List<DictLiteralDetails.DictLiteralEntry> entries, int entryCount, String scopeId) Create dict literal details with validation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionTypeFqnrecord component.entries()Returns the value of theentriesrecord component.intReturns the value of theentryCountrecord component.Returns the value of theentryTypeFqnrecord 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 thekeyTypeFqnrecord component.scopeId()Returns the value of thescopeIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueTypeFqnrecord component.
-
Constructor Details
-
DictLiteralDetails
-
-
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
-
entryTypeFqn
Returns the value of theentryTypeFqnrecord component.- Returns:
- the value of the
entryTypeFqnrecord component
-
keyTypeFqn
Returns the value of thekeyTypeFqnrecord component.- Returns:
- the value of the
keyTypeFqnrecord component
-
valueTypeFqn
Returns the value of thevalueTypeFqnrecord component.- Returns:
- the value of the
valueTypeFqnrecord component
-
entries
-
entryCount
public int entryCount()Returns the value of theentryCountrecord component.- Returns:
- the value of the
entryCountrecord component
-
scopeId
-