public class RefactoringChangeUtil
extends java.lang.Object
Constructor and Description |
---|
RefactoringChangeUtil() |
Modifier and Type | Method and Description |
---|---|
static PsiSuperExpression |
createSuperExpression(PsiManager manager,
PsiClass qualifierClass) |
static PsiThisExpression |
createThisExpression(PsiManager manager,
PsiClass qualifierClass) |
static PsiClass |
getQualifierClass(PsiReferenceExpression expression)
Calculates class or interface where referenced member should be searched
|
static PsiClass |
getThisClass(PsiElement place) |
static PsiType |
getTypeByExpression(PsiExpression expr) |
static PsiReferenceExpression |
qualifyReference(PsiReferenceExpression referenceExpression,
PsiMember member,
PsiClass qualifyingClass) |
public static PsiType getTypeByExpression(PsiExpression expr)
public static PsiReferenceExpression qualifyReference(PsiReferenceExpression referenceExpression, PsiMember member, PsiClass qualifyingClass) throws IncorrectOperationException
IncorrectOperationException
public static PsiClass getThisClass(PsiElement place)
public static PsiClass getQualifierClass(PsiReferenceExpression expression)
expression
- reference to the class memberexpression
is not qualifiedpublic static PsiThisExpression createThisExpression(PsiManager manager, PsiClass qualifierClass) throws IncorrectOperationException
IncorrectOperationException
public static PsiSuperExpression createSuperExpression(PsiManager manager, PsiClass qualifierClass) throws IncorrectOperationException
IncorrectOperationException