public class ResolveCache extends java.lang.Object implements Disposable
Modifier and Type | Class and Description |
---|---|
static interface |
ResolveCache.AbstractResolver<TRef extends PsiReference,TResult> |
static interface |
ResolveCache.PolyVariantContextResolver<T extends PsiPolyVariantReference>
Poly variant resolver with additional containingFile parameter, which helps to avoid costly tree up traversal
|
static interface |
ResolveCache.PolyVariantResolver<T extends PsiPolyVariantReference>
Resolver which returns array of possible resolved variants instead of just one
|
static interface |
ResolveCache.Resolver
Resolver specialized to resolve PsiReference to PsiElement
|
Disposable.Parent
Constructor and Description |
---|
ResolveCache(MessageBus bus)
Deprecated.
|
ResolveCache(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache(boolean isPhysical) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
<T extends PsiPolyVariantReference> |
getCachedResults(T ref,
boolean physical,
boolean incompleteCode,
boolean isPoly) |
static ResolveCache |
getInstance(Project project) |
<TRef extends PsiReference,TResult> |
resolveWithCaching(TRef ref,
ResolveCache.AbstractResolver<TRef,TResult> resolver,
boolean needToPreventRecursion,
boolean incompleteCode) |
<T extends PsiPolyVariantReference> |
resolveWithCaching(T ref,
ResolveCache.PolyVariantContextResolver<T> resolver,
boolean needToPreventRecursion,
boolean incompleteCode,
PsiFile containingFile) |
<T extends PsiPolyVariantReference> |
resolveWithCaching(T ref,
ResolveCache.PolyVariantResolver<T> resolver,
boolean needToPreventRecursion,
boolean incompleteCode) |
<T extends PsiPolyVariantReference> |
resolveWithCaching(T ref,
ResolveCache.PolyVariantResolver<T> resolver,
boolean needToPreventRecursion,
boolean incompleteCode,
PsiFile containingFile) |
public ResolveCache(Project project)
@Deprecated public ResolveCache(MessageBus bus)
public static ResolveCache getInstance(Project project)
public void dispose()
Disposable
dispose
in interface Disposable
public void clearCache(boolean isPhysical)
public <T extends PsiPolyVariantReference> ResolveResult [] resolveWithCaching(T ref, ResolveCache.PolyVariantResolver<T> resolver, boolean needToPreventRecursion, boolean incompleteCode)
public <T extends PsiPolyVariantReference> ResolveResult [] resolveWithCaching(T ref, ResolveCache.PolyVariantResolver<T> resolver, boolean needToPreventRecursion, boolean incompleteCode, PsiFile containingFile)
public <T extends PsiPolyVariantReference> ResolveResult [] resolveWithCaching(T ref, ResolveCache.PolyVariantContextResolver<T> resolver, boolean needToPreventRecursion, boolean incompleteCode, PsiFile containingFile)
public <T extends PsiPolyVariantReference> ResolveResult [] getCachedResults(T ref, boolean physical, boolean incompleteCode, boolean isPoly)
public <TRef extends PsiReference,TResult> TResult resolveWithCaching(TRef ref, ResolveCache.AbstractResolver<TRef,TResult> resolver, boolean needToPreventRecursion, boolean incompleteCode)