Record Class ObjectAccessInstrGenerator.ChainStepResult

java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.ObjectAccessInstrGenerator.ChainStepResult
Record Components:
tempName - The temp variable holding the result
typeSymbol - The type of the result
isVoid - True if this was a void-returning method (no result to store)
isExplicitTraitTypeRef - True if this represents an explicit trait type reference (e.g., TraitName in TraitName.method() syntax) rather than a variable of trait type. Used to generate INVOKESPECIAL for calling trait default methods.
Enclosing class:
ObjectAccessInstrGenerator

static record ObjectAccessInstrGenerator.ChainStepResult(String tempName, ISymbol typeSymbol, boolean isVoid, boolean isExplicitTraitTypeRef) extends Record
Result holder for each step in the chain processing.
  • Constructor Details

    • ChainStepResult

      ChainStepResult(String tempName, ISymbol typeSymbol, boolean isVoid, boolean isExplicitTraitTypeRef)
      Creates an instance of a ChainStepResult record class.
      Parameters:
      tempName - the value for the tempName record component
      typeSymbol - the value for the typeSymbol record component
      isVoid - the value for the isVoid record component
      isExplicitTraitTypeRef - the value for the isExplicitTraitTypeRef record component
  • 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.
    • tempName

      public String tempName()
      Returns the value of the tempName record component.
      Returns:
      the value of the tempName record component
    • typeSymbol

      public ISymbol typeSymbol()
      Returns the value of the typeSymbol record component.
      Returns:
      the value of the typeSymbol record component
    • isVoid

      public boolean isVoid()
      Returns the value of the isVoid record component.
      Returns:
      the value of the isVoid record component
    • isExplicitTraitTypeRef

      public boolean isExplicitTraitTypeRef()
      Returns the value of the isExplicitTraitTypeRef record component.
      Returns:
      the value of the isExplicitTraitTypeRef record component