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 parameterentries- Flat precomputed dispatch entriesdebugInfo- 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA single entry in the dispatch table mapping concrete type(s) to a handler method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseTypeFqnsrecord component.Returns the value of thedebugInforecord component.entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisVoid()Whether this is a void-returning dispatcher.Returns the value of themethodNamerecord component.intGet the number of dispatch parameters (1 or 2).Returns the value of theparamNamesrecord component.Returns the value of thereturnTypeFqnrecord component.Returns the value of theselfTypeFqnrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DispatchTableDetails
-
-
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
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
selfTypeFqn
Returns the value of theselfTypeFqnrecord component.- Returns:
- the value of the
selfTypeFqnrecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
returnTypeFqn
Returns the value of thereturnTypeFqnrecord component.- Returns:
- the value of the
returnTypeFqnrecord component
-
paramNames
Returns the value of theparamNamesrecord component.- Returns:
- the value of the
paramNamesrecord component
-
baseTypeFqns
Returns the value of thebaseTypeFqnsrecord component.- Returns:
- the value of the
baseTypeFqnsrecord component
-
entries
-
debugInfo
-