Class CallDetailsBuilder
java.lang.Object
org.ek9lang.compiler.phase7.calls.CallDetailsBuilder
- All Implemented Interfaces:
Function<CallContext,
CallDetailsBuilder.CallDetailsResult>
public final class CallDetailsBuilder
extends Object
implements Function<CallContext,CallDetailsBuilder.CallDetailsResult>
Composable builder for creating CallDetails with cost-based method resolution and promotion support.
Integrates method resolution, parameter promotion processing, and metadata extraction
into a single reusable component for all CALL operations.
This builder handles:
- Cost-based method resolution using SymbolMatcher logic
- Parameter-by-parameter promotion checking via #^ operator
- CallDetails construction with proper type information
- Integration with escape analysis metadata
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Result of building CallDetails including any promotion instructions needed. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CallDetailsBuilder
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<CallContext,
CallDetailsBuilder.CallDetailsResult>
-