org.jetbrains.jet.lang.resolve.calls.context
Class ResolutionResultsCacheImpl

java.lang.Object
  extended by org.jetbrains.jet.lang.resolve.calls.context.ResolutionResultsCacheImpl
All Implemented Interfaces:
ResolutionResultsCache

public class ResolutionResultsCacheImpl
extends java.lang.Object
implements ResolutionResultsCache


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jetbrains.jet.lang.resolve.calls.context.ResolutionResultsCache
ResolutionResultsCache.MemberType<D extends CallableDescriptor>
 
Field Summary
static WritableSlice<CallKey,CallCandidateResolutionContext<? extends CallableDescriptor>> DEFERRED_COMPUTATION_FOR_CALL
           
static WritableSlice<CallKey,OverloadResolutionResultsImpl<FunctionDescriptor>> RESOLUTION_RESULTS_FOR_FUNCTION
           
static WritableSlice<CallKey,OverloadResolutionResultsImpl<VariableDescriptor>> RESOLUTION_RESULTS_FOR_PROPERTY
           
static WritableSlice<CallKey,ResolvedCallWithTrace<? extends CallableDescriptor>> RESOLVED_CALL_FOR_ARGUMENT
           
static WritableSlice<CallKey,DelegatingBindingTrace> TRACE_DELTAS_CACHE
           
 
Fields inherited from interface org.jetbrains.jet.lang.resolve.calls.context.ResolutionResultsCache
FUNCTION_MEMBER_TYPE, PROPERTY_MEMBER_TYPE
 
Constructor Summary
ResolutionResultsCacheImpl()
           
 
Method Summary
static ResolutionResultsCache create()
           
 ResolvedCallWithTrace<? extends CallableDescriptor> getCallForArgument(JetExpression expression)
           
 CallCandidateResolutionContext<? extends CallableDescriptor> getDeferredComputation(JetExpression expression)
           
<D extends CallableDescriptor>
OverloadResolutionResultsImpl<D>
getResolutionResults(CallKey callKey, ResolutionResultsCache.MemberType<D> memberType)
           
 DelegatingBindingTrace getResolutionTrace(CallKey callKey)
           
<D extends CallableDescriptor>
void
recordDeferredComputationForCall(CallKey callKey, ResolvedCallWithTrace<D> resolvedCall, CallCandidateResolutionContext<D> deferredComputation)
           
<D extends CallableDescriptor>
void
recordResolutionResults(CallKey callKey, ResolutionResultsCache.MemberType<D> memberType, OverloadResolutionResultsImpl<D> results)
           
 void recordResolutionTrace(CallKey callKey, DelegatingBindingTrace delegatingTrace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOLUTION_RESULTS_FOR_FUNCTION

public static final WritableSlice<CallKey,OverloadResolutionResultsImpl<FunctionDescriptor>> RESOLUTION_RESULTS_FOR_FUNCTION

RESOLUTION_RESULTS_FOR_PROPERTY

public static final WritableSlice<CallKey,OverloadResolutionResultsImpl<VariableDescriptor>> RESOLUTION_RESULTS_FOR_PROPERTY

TRACE_DELTAS_CACHE

public static final WritableSlice<CallKey,DelegatingBindingTrace> TRACE_DELTAS_CACHE

DEFERRED_COMPUTATION_FOR_CALL

public static final WritableSlice<CallKey,CallCandidateResolutionContext<? extends CallableDescriptor>> DEFERRED_COMPUTATION_FOR_CALL

RESOLVED_CALL_FOR_ARGUMENT

public static final WritableSlice<CallKey,ResolvedCallWithTrace<? extends CallableDescriptor>> RESOLVED_CALL_FOR_ARGUMENT
Constructor Detail

ResolutionResultsCacheImpl

public ResolutionResultsCacheImpl()
Method Detail

recordResolutionResults

public <D extends CallableDescriptor> void recordResolutionResults(@NotNull
                                                                   CallKey callKey,
                                                                   @NotNull
                                                                   ResolutionResultsCache.MemberType<D> memberType,
                                                                   @NotNull
                                                                   OverloadResolutionResultsImpl<D> results)
Specified by:
recordResolutionResults in interface ResolutionResultsCache

getResolutionResults

@Nullable
public <D extends CallableDescriptor> OverloadResolutionResultsImpl<D> getResolutionResults(@NotNull
                                                                                                     CallKey callKey,
                                                                                                     @NotNull
                                                                                                     ResolutionResultsCache.MemberType<D> memberType)
Specified by:
getResolutionResults in interface ResolutionResultsCache

recordResolutionTrace

public void recordResolutionTrace(@NotNull
                                  CallKey callKey,
                                  @NotNull
                                  DelegatingBindingTrace delegatingTrace)
Specified by:
recordResolutionTrace in interface ResolutionResultsCache

getResolutionTrace

@Nullable
public DelegatingBindingTrace getResolutionTrace(@NotNull
                                                          CallKey callKey)
Specified by:
getResolutionTrace in interface ResolutionResultsCache

recordDeferredComputationForCall

public <D extends CallableDescriptor> void recordDeferredComputationForCall(@NotNull
                                                                            CallKey callKey,
                                                                            @NotNull
                                                                            ResolvedCallWithTrace<D> resolvedCall,
                                                                            @NotNull
                                                                            CallCandidateResolutionContext<D> deferredComputation)
Specified by:
recordDeferredComputationForCall in interface ResolutionResultsCache

getDeferredComputation

@Nullable
public CallCandidateResolutionContext<? extends CallableDescriptor> getDeferredComputation(@Nullable
                                                                                                    JetExpression expression)
Specified by:
getDeferredComputation in interface ResolutionResultsCache

getCallForArgument

@Nullable
public ResolvedCallWithTrace<? extends CallableDescriptor> getCallForArgument(@Nullable
                                                                                       JetExpression expression)
Specified by:
getCallForArgument in interface ResolutionResultsCache

create

@NotNull
public static ResolutionResultsCache create()