public class CallTransformer<D extends CallableDescriptor,F extends D> extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CallTransformer.CallForImplicitInvoke |
| Modifier and Type | Field and Description |
|---|---|
static CallTransformer<CallableDescriptor,FunctionDescriptor> |
FUNCTION_CALL_TRANSFORMER |
static CallTransformer<VariableDescriptor,VariableDescriptor> |
PROPERTY_CALL_TRANSFORMER |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<CallCandidateResolutionContext<D>> |
createCallContexts(ResolutionCandidate<D> candidate,
ResolutionTask<D,F> task,
TemporaryBindingTrace candidateTrace)
Returns two contexts for 'variable as function' case (in FUNCTION_CALL_TRANSFORMER), one context otherwise
|
java.util.Collection<ResolvedCallWithTrace<F>> |
transformCall(CallCandidateResolutionContext<D> callCandidateResolutionContext,
CallResolver callResolver,
ResolutionTask<D,F> task)
Returns collection of resolved calls for 'invoke' for 'variable as function' case (in FUNCTION_CALL_TRANSFORMER),
the resolved call from callCandidateResolutionContext otherwise
|
public static CallTransformer<VariableDescriptor,VariableDescriptor> PROPERTY_CALL_TRANSFORMER
public static CallTransformer<CallableDescriptor,FunctionDescriptor> FUNCTION_CALL_TRANSFORMER
@NotNull public java.util.Collection<CallCandidateResolutionContext<D>> createCallContexts(@NotNull ResolutionCandidate<D> candidate, @NotNull ResolutionTask<D,F> task, @NotNull TemporaryBindingTrace candidateTrace)
@NotNull public java.util.Collection<ResolvedCallWithTrace<F>> transformCall(@NotNull CallCandidateResolutionContext<D> callCandidateResolutionContext, @NotNull CallResolver callResolver, @NotNull ResolutionTask<D,F> task)