public class JavaResolveUtil
extends java.lang.Object
Constructor and Description |
---|
JavaResolveUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canAccessProtectedMember(PsiMember member,
PsiClass memberClass,
PsiClass accessObjectClass,
PsiClass contextClass,
boolean isStatic) |
static PsiElement |
findParentContextOfClass(PsiElement element,
java.lang.Class<?> aClass,
boolean strict) |
static PsiClass |
getContextClass(PsiElement element) |
static boolean |
isAccessible(PsiMember member,
PsiClass memberClass,
PsiModifierList modifierList,
PsiElement place,
PsiClass accessObjectClass,
PsiElement fileResolveScope) |
static boolean |
isAccessible(PsiMember member,
PsiClass memberClass,
PsiModifierList modifierList,
PsiElement place,
PsiClass accessObjectClass,
PsiElement fileResolveScope,
PsiFile placeFile) |
static boolean |
isInJavaDoc(PsiElement place) |
static boolean |
processImplicitlyImportedPackages(PsiScopeProcessor processor,
ResolveState state,
PsiElement place,
PsiManager manager) |
static PsiElement |
resolveImaginarySuperCallInThisPlace(PsiMember place,
Project project,
PsiClass superClassWhichTheSuperCallMustResolveTo) |
static <T extends PsiPolyVariantReference> |
resolveWithContainingFile(T ref,
ResolveCache.PolyVariantContextResolver<T> resolver,
boolean needToPreventRecursion,
boolean incompleteCode,
PsiFile containingFile) |
static void |
substituteResults(PsiJavaCodeReferenceElement ref,
JavaResolveResult [] result) |
public static PsiClass getContextClass(PsiElement element)
public static PsiElement findParentContextOfClass(PsiElement element, java.lang.Class<?> aClass, boolean strict)
public static boolean isAccessible(PsiMember member, PsiClass memberClass, PsiModifierList modifierList, PsiElement place, PsiClass accessObjectClass, PsiElement fileResolveScope)
public static boolean isAccessible(PsiMember member, PsiClass memberClass, PsiModifierList modifierList, PsiElement place, PsiClass accessObjectClass, PsiElement fileResolveScope, PsiFile placeFile)
public static boolean canAccessProtectedMember(PsiMember member, PsiClass memberClass, PsiClass accessObjectClass, PsiClass contextClass, boolean isStatic)
public static boolean isInJavaDoc(PsiElement place)
public static boolean processImplicitlyImportedPackages(PsiScopeProcessor processor, ResolveState state, PsiElement place, PsiManager manager)
public static void substituteResults(PsiJavaCodeReferenceElement ref, JavaResolveResult [] result)
public static <T extends PsiPolyVariantReference> JavaResolveResult [] resolveWithContainingFile(T ref, ResolveCache.PolyVariantContextResolver<T> resolver, boolean needToPreventRecursion, boolean incompleteCode, PsiFile containingFile)
public static PsiElement resolveImaginarySuperCallInThisPlace(PsiMember place, Project project, PsiClass superClassWhichTheSuperCallMustResolveTo)
super();
" no-args call resolves to if inserted in the place
(typically it would be inserted in the sub class constructor)
No code modifications happen in this method; it's used for resolving multiple overloaded constructors.