public interface PsiReferenceExpression extends PsiExpression, PsiJavaCodeReferenceElement
Iconable.IconFlags, Iconable.LastComputedIcon
ARRAY_FACTORY, EMPTY_ARRAY, EXPRESSION_TO_TYPE
ARRAY_FACTORY, EMPTY_ARRAY
ICON_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) |
getType
getParameterList, getQualifiedName, getReferenceNameElement, getTypeParameters, isQualified
advancedResolve, multiResolve, processVariants
resolveReference
accept, 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, toString
getUserData, putUserData
getQualifier, getReferenceName
bindToElement, getCanonicalText, getElement, getRangeInElement, getVariants, handleElementRename, isReferenceTo, isSoft, resolve, resolvesTo
getAbsoluteRange
PsiExpression 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