public interface PsiReferenceExpression extends PsiExpression, PsiJavaCodeReferenceElement
Iconable.IconFlags, Iconable.LastComputedIconARRAY_FACTORY, EMPTY_ARRAY, EXPRESSION_TO_TYPEARRAY_FACTORY, EMPTY_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY| Modifier and Type | Method and Description |
|---|---|
PsiElement |
bindToElementViaStaticImport(PsiClass qualifierClass)
Creates an
import static statement importing the referenced member
from the specified class, or qualifies the reference with the class name if
that class is already imported by a regular import statement. |
PsiExpression |
getQualifierExpression()
Returns the expression used as the qualifier of the reference (the content up to the
last period).
|
void |
setQualifierExpression(PsiExpression newQualifier) |
getTypegetParameterList, getQualifiedName, getReferenceNameElement, getTypeParameters, isQualifiedadvancedResolve, multiResolve, processVariantsresolveReferenceaccept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toStringgetUserData, putUserDatagetQualifier, getReferenceNamebindToElement, getCanonicalText, getElement, getRangeInElement, getVariants, handleElementRename, isReferenceTo, isSoft, resolve, resolvesTogetAbsoluteRangePsiExpression getQualifierExpression()
PsiElement bindToElementViaStaticImport(PsiClass qualifierClass) throws IncorrectOperationException
import static statement importing the referenced member
from the specified class, or qualifies the reference with the class name if
that class is already imported by a regular import statement.qualifierClass - the class to import.IncorrectOperationException - if the modification failed for some reason.void setQualifierExpression(PsiExpression newQualifier) throws IncorrectOperationException
IncorrectOperationException