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 order
entryCount - Compile-time known entry count for pre-sizing
scopeId - 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).

  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • collectionTypeFqn

      public String collectionTypeFqn()
      Returns the value of the collectionTypeFqn record component.
      Returns:
      the value of the collectionTypeFqn record component
    • entryTypeFqn

      public String entryTypeFqn()
      Returns the value of the entryTypeFqn record component.
      Returns:
      the value of the entryTypeFqn record component
    • keyTypeFqn

      public String keyTypeFqn()
      Returns the value of the keyTypeFqn record component.
      Returns:
      the value of the keyTypeFqn record component
    • valueTypeFqn

      public String valueTypeFqn()
      Returns the value of the valueTypeFqn record component.
      Returns:
      the value of the valueTypeFqn record component
    • entries

      Returns the value of the entries record component.
      Returns:
      the value of the entries record component
    • entryCount

      public int entryCount()
      Returns the value of the entryCount record component.
      Returns:
      the value of the entryCount record component
    • scopeId

      public String scopeId()
      Returns the value of the scopeId record component.
      Returns:
      the value of the scopeId record component