public class RefJavaUtilImpl extends RefJavaUtil
Constructor and Description |
---|
RefJavaUtilImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addReferences(PsiModifierListOwner psiFrom,
RefJavaElement ref,
PsiElement findIn) |
void |
addReferencesTo(UDeclaration decl,
RefJavaElement ref,
UElement [] findIn) |
void |
addTypeReference(UElement uElement,
PsiType psiType,
RefManager refManager) |
void |
addTypeReference(UElement uElement,
PsiType psiType,
RefManager refManager,
RefJavaElement refMethod) |
int |
compareAccess(java.lang.String a1,
java.lang.String a2) |
java.lang.String |
getAccessModifier(PsiModifierListOwner psiElement) |
RefClass |
getOwnerClass(RefElement refElement) |
RefClass |
getOwnerClass(RefManager refManager,
UElement uElement) |
java.lang.String |
getPackageName(RefEntity refEntity) |
RefClass |
getTopLevelClass(RefElement refElement) |
boolean |
isCallToSuperMethod(UExpression expression,
UMethod method) |
boolean |
isInheritor(RefClass subClass,
RefClass superClass) |
boolean |
isMethodOnlyCallsSuper(UMethod method) |
void |
setAccessModifier(RefJavaElement refElement,
java.lang.String newAccess) |
void |
setIsFinal(RefJavaElement refElement,
boolean isFinal) |
void |
setIsStatic(RefJavaElement refElement,
boolean isStatic) |
getInstance, getPackage
public void addReferences(PsiModifierListOwner psiFrom, RefJavaElement ref, PsiElement findIn)
addReferences
in class RefJavaUtil
public void addReferencesTo(UDeclaration decl, RefJavaElement ref, UElement [] findIn)
addReferencesTo
in class RefJavaUtil
public RefClass getTopLevelClass(RefElement refElement)
getTopLevelClass
in class RefJavaUtil
public boolean isInheritor(RefClass subClass, RefClass superClass)
isInheritor
in class RefJavaUtil
public java.lang.String getPackageName(RefEntity refEntity)
getPackageName
in class RefJavaUtil
public java.lang.String getAccessModifier(PsiModifierListOwner psiElement)
getAccessModifier
in class RefJavaUtil
public RefClass getOwnerClass(RefManager refManager, UElement uElement)
getOwnerClass
in class RefJavaUtil
public RefClass getOwnerClass(RefElement refElement)
getOwnerClass
in class RefJavaUtil
public boolean isMethodOnlyCallsSuper(UMethod method)
isMethodOnlyCallsSuper
in class RefJavaUtil
public boolean isCallToSuperMethod(UExpression expression, UMethod method)
isCallToSuperMethod
in class RefJavaUtil
public int compareAccess(java.lang.String a1, java.lang.String a2)
compareAccess
in class RefJavaUtil
public void setAccessModifier(RefJavaElement refElement, java.lang.String newAccess)
setAccessModifier
in class RefJavaUtil
public void setIsStatic(RefJavaElement refElement, boolean isStatic)
setIsStatic
in class RefJavaUtil
public void setIsFinal(RefJavaElement refElement, boolean isFinal)
setIsFinal
in class RefJavaUtil
public void addTypeReference(UElement uElement, PsiType psiType, RefManager refManager)
addTypeReference
in class RefJavaUtil
public void addTypeReference(UElement uElement, PsiType psiType, RefManager refManager, RefJavaElement refMethod)
addTypeReference
in class RefJavaUtil