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

java.lang.Object
  extended by org.jetbrains.jet.lang.resolve.calls.context.ResolutionResultsCache

public class ResolutionResultsCache
extends java.lang.Object


Nested Class Summary
static class ResolutionResultsCache.MemberType<D extends CallableDescriptor>
           
 
Field Summary
static WritableSlice<CallKey,CallCandidateResolutionContext<FunctionDescriptor>> DEFERRED_COMPUTATION_FOR_CALL
           
static ResolutionResultsCache.MemberType<FunctionDescriptor> FUNCTION_MEMBER_TYPE
           
static ResolutionResultsCache.MemberType<VariableDescriptor> PROPERTY_MEMBER_TYPE
           
static WritableSlice<CallKey,OverloadResolutionResultsImpl<FunctionDescriptor>> RESOLUTION_RESULTS_FOR_FUNCTION
           
static WritableSlice<CallKey,OverloadResolutionResultsImpl<VariableDescriptor>> RESOLUTION_RESULTS_FOR_PROPERTY
           
static WritableSlice<CallKey,DelegatingBindingTrace> TRACE_DELTAS_CACHE
           
 
Constructor Summary
ResolutionResultsCache()
           
 
Method Summary
static ResolutionResultsCache create()
           
 CallCandidateResolutionContext<FunctionDescriptor> getDeferredComputation(CallKey callKey)
           
<D extends CallableDescriptor>
OverloadResolutionResultsImpl<D>
getResolutionResults(CallKey callKey, ResolutionResultsCache.MemberType<D> memberType)
           
 DelegatingBindingTrace getResolutionTrace(CallKey callKey)
           
<D extends CallableDescriptor>
void
recordDeferredComputationForCall(CallKey callKey, CallCandidateResolutionContext<D> deferredComputation, ResolutionResultsCache.MemberType memberType)
           
<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

FUNCTION_MEMBER_TYPE

public static final ResolutionResultsCache.MemberType<FunctionDescriptor> FUNCTION_MEMBER_TYPE

PROPERTY_MEMBER_TYPE

public static final ResolutionResultsCache.MemberType<VariableDescriptor> PROPERTY_MEMBER_TYPE

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<FunctionDescriptor>> DEFERRED_COMPUTATION_FOR_CALL
Constructor Detail

ResolutionResultsCache

public ResolutionResultsCache()
Method Detail

recordResolutionResults

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

getResolutionResults

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

recordResolutionTrace

public void recordResolutionTrace(@NotNull
                                  CallKey callKey,
                                  @NotNull
                                  DelegatingBindingTrace delegatingTrace)

getResolutionTrace

@Nullable
public DelegatingBindingTrace getResolutionTrace(@NotNull
                                                          CallKey callKey)

recordDeferredComputationForCall

public <D extends CallableDescriptor> void recordDeferredComputationForCall(@NotNull
                                                                            CallKey callKey,
                                                                            @NotNull
                                                                            CallCandidateResolutionContext<D> deferredComputation,
                                                                            @NotNull
                                                                            ResolutionResultsCache.MemberType memberType)

getDeferredComputation

@Nullable
public CallCandidateResolutionContext<FunctionDescriptor> getDeferredComputation(@NotNull
                                                                                          CallKey callKey)

create

@NotNull
public static ResolutionResultsCache create()