Record Class DispatchTableDetails

java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.data.DispatchTableDetails
Record Components:
selfTypeFqn - FQN of the declaring aggregate (dispatcher class)
methodName - Dispatcher method name (e.g., "render")
returnTypeFqn - Return type FQN ("org.ek9.lang::Void" for void methods)
paramNames - Dispatched parameter names (1 or 2)
baseTypeFqns - Base dispatch type FQNs per parameter
entries - Flat precomputed dispatch entries
debugInfo - Debug information for source mapping

public record DispatchTableDetails(String selfTypeFqn, String methodName, String returnTypeFqn, List<String> paramNames, List<String> baseTypeFqns, List<DispatchTableDetails.DispatchEntry> entries, DebugInfo debugInfo) extends Record
Details for the DISPATCH_TABLE IR instruction.

Contains the precomputed flat dispatch table mapping concrete runtime types to their winning handler methods. Computed at Phase 7 using the same cost model as Phase 5 ambiguity validation. Each backend (JVM/LLVM) lowers FQN strings to its native type identity mechanism.

  • Constructor Details

  • Method Details

    • isVoid

      public boolean isVoid()
      Whether this is a void-returning dispatcher.
    • paramCount

      public int paramCount()
      Get the number of dispatch parameters (1 or 2).
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • selfTypeFqn

      public String selfTypeFqn()
      Returns the value of the selfTypeFqn record component.
      Returns:
      the value of the selfTypeFqn record component
    • methodName

      public String methodName()
      Returns the value of the methodName record component.
      Returns:
      the value of the methodName record component
    • returnTypeFqn

      public String returnTypeFqn()
      Returns the value of the returnTypeFqn record component.
      Returns:
      the value of the returnTypeFqn record component
    • paramNames

      public List<String> paramNames()
      Returns the value of the paramNames record component.
      Returns:
      the value of the paramNames record component
    • baseTypeFqns

      public List<String> baseTypeFqns()
      Returns the value of the baseTypeFqns record component.
      Returns:
      the value of the baseTypeFqns record component
    • entries

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

      public DebugInfo debugInfo()
      Returns the value of the debugInfo record component.
      Returns:
      the value of the debugInfo record component