org.jetbrains.kotlin.resolve.calls.tasks
Class ResolutionTask<D extends CallableDescriptor,F extends D>
java.lang.Object
org.jetbrains.kotlin.resolve.calls.context.ResolutionContext<Context>
org.jetbrains.kotlin.resolve.calls.context.CallResolutionContext<ResolutionTask<D,F>>
org.jetbrains.kotlin.resolve.calls.tasks.ResolutionTask<D,F>
public class ResolutionTask<D extends CallableDescriptor,F extends D>
- extends CallResolutionContext<ResolutionTask<D,F>>
Stores candidates for call resolution.
Method Summary |
void |
addResolvedCall(MutableResolvedCall<F> resolvedCall)
|
protected ResolutionTask<D,F> |
create(BindingTrace trace,
JetScope scope,
DataFlowInfo dataFlowInfo,
JetType expectedType,
ContextDependency contextDependency,
ResolutionResultsCache resolutionResultsCache,
StatementFilter statementFilter,
boolean collectAllCandidates)
|
java.util.Collection<ResolutionCandidate<D>> |
getCandidates()
|
java.util.Collection<MutableResolvedCall<F>> |
getResolvedCalls()
|
ResolutionTask<D,F> |
replaceCall(Call newCall)
|
ResolutionTask<D,F> |
replaceContext(BasicCallResolutionContext newContext)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
tracing
public final TracingStrategy tracing
ResolutionTask
public ResolutionTask(@NotNull
BasicCallResolutionContext context,
@NotNull
TracingStrategy tracing,
@NotNull
kotlin.Function0<java.util.Collection<ResolutionCandidate<D>>> lazyCandidates)
ResolutionTask
public ResolutionTask(@NotNull
java.util.Collection<ResolutionCandidate<D>> candidates,
@NotNull
JetReferenceExpression reference,
@NotNull
BasicCallResolutionContext context)
getCandidates
@NotNull
public java.util.Collection<ResolutionCandidate<D>> getCandidates()
addResolvedCall
public void addResolvedCall(@NotNull
MutableResolvedCall<F> resolvedCall)
getResolvedCalls
@NotNull
public java.util.Collection<MutableResolvedCall<F>> getResolvedCalls()
create
protected ResolutionTask<D,F> create(@NotNull
BindingTrace trace,
@NotNull
JetScope scope,
@NotNull
DataFlowInfo dataFlowInfo,
@NotNull
JetType expectedType,
@NotNull
ContextDependency contextDependency,
@NotNull
ResolutionResultsCache resolutionResultsCache,
@NotNull
StatementFilter statementFilter,
boolean collectAllCandidates)
- Specified by:
create
in class ResolutionContext<ResolutionTask<D extends CallableDescriptor,F extends D>>
replaceContext
public ResolutionTask<D,F> replaceContext(@NotNull
BasicCallResolutionContext newContext)
replaceCall
public ResolutionTask<D,F> replaceCall(@NotNull
Call newCall)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object