public class LightPackageReferenceExpression extends LightPackageReference implements PsiReferenceExpression
Iconable.IconFlags, Iconable.LastComputedIconmyManagerFLAGS_LOCKED, ICON_PLACEHOLDERARRAY_FACTORY, EMPTY_ARRAY, EXPRESSION_TO_TYPEARRAY_FACTORY, EMPTY_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAY| Constructor and Description |
|---|
LightPackageReferenceExpression(PsiManager manager,
PsiPackage refPackage) |
| Modifier and Type | Method and Description |
|---|---|
PsiElement |
bindToElementViaStaticImport(PsiClass aClass)
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).
|
PsiType |
getType()
Returns the type of the expression.
|
boolean |
isReferenceTo(PsiElement element)
Checks if the reference targets the specified element.
|
void |
setQualifierExpression(PsiExpression newQualifier) |
accept, advancedResolve, bindToElement, copy, getCanonicalText, getElement, getParameterList, getQualifiedName, getQualifier, getRangeInElement, getReference, getReferenceName, getReferenceNameElement, getText, getTypeParameters, getVariants, handleElementRename, isQualified, isSoft, isValid, multiResolve, processVariants, resolve, toStringadd, addAfter, addBefore, checkAdd, checkDelete, delete, findElementAt, getChildren, getContainingFile, getLanguage, getManager, getNavigationElement, getNextSibling, getNode, getParent, getPrevSibling, getStartOffsetInParent, getTextLength, getTextOffset, getTextRange, isPhysical, isWritable, replace, setNavigationElement, textMatches, textMatches, textToCharArrayacceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContext, getFirstChild, getLastChild, getName, getOriginalElement, getPresentation, getProject, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, processDeclarations, textContainsbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameterList, 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, isSoft, resolve, resolvesTogetAbsoluteRangepublic LightPackageReferenceExpression(PsiManager manager, PsiPackage refPackage)
public PsiExpression getQualifierExpression()
PsiReferenceExpressiongetQualifierExpression in interface PsiReferenceExpressionpublic PsiElement bindToElementViaStaticImport(PsiClass aClass) throws IncorrectOperationException
PsiReferenceExpressionimport 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.bindToElementViaStaticImport in interface PsiReferenceExpressionaClass - the class to import.IncorrectOperationException - if the modification failed for some reason.public void setQualifierExpression(PsiExpression newQualifier) throws IncorrectOperationException
setQualifierExpression in interface PsiReferenceExpressionIncorrectOperationExceptionpublic PsiType getType()
PsiExpressiongetType in interface PsiExpressionpublic boolean isReferenceTo(PsiElement element)
PsiReferenceisReferenceTo in interface PsiReferenceisReferenceTo in class LightPackageReferenceelement - the element to check target for.true if the reference targets that element, false otherwise.