public class PsiJavaModuleReferenceImpl extends PsiReferenceBase.Poly<PsiJavaModuleReferenceElement> implements PsiJavaModuleReference
PsiReferenceBase.Immediate<T extends PsiElement>, PsiReferenceBase.Poly<T extends PsiElement>
myElement, mySoft
ARRAY_FACTORY, EMPTY_ARRAY
Constructor and Description |
---|
PsiJavaModuleReferenceImpl(PsiJavaModuleReferenceElement element) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCanonicalText()
Returns the name of the reference target element which does not depend on import statements
and other context (for example, the full-qualified name of the class if the reference targets
a Java class).
|
PsiElement |
handleElementRename(java.lang.String newName)
Called when the reference target element has been renamed, in order to change the reference
text according to the new name.
|
ResolveResult [] |
multiResolve(boolean incompleteCode)
Returns the results of resolving the reference.
|
PsiJavaModule |
resolve()
Returns the element which is the target of the reference.
|
isReferenceTo
bindToElement, calculateDefaultRangeInElement, createSelfReference, createSelfReference, getElement, getRangeInElement, getValue, isSoft, setRangeInElement, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
resolveReference
bindToElement, getElement, getRangeInElement, getVariants, isReferenceTo, isSoft, resolvesTo
getAbsoluteRange
public PsiJavaModuleReferenceImpl(PsiJavaModuleReferenceElement element)
public java.lang.String getCanonicalText()
PsiReference
getCanonicalText
in interface PsiReference
getCanonicalText
in class PsiReferenceBase<PsiJavaModuleReferenceElement>
public PsiJavaModule resolve()
PsiReference
resolve
in interface PsiJavaModuleReference
resolve
in interface PsiReference
resolve
in class PsiReferenceBase.Poly<PsiJavaModuleReferenceElement>
null
if it was not possible to resolve the reference to a valid target.PsiPolyVariantReference.multiResolve(boolean)
public ResolveResult [] multiResolve(boolean incompleteCode)
PsiPolyVariantReference
multiResolve
in interface PsiPolyVariantReference
incompleteCode
- if true, the code in the context of which the reference is
being resolved is considered incomplete, and the method may return additional
invalid results.public PsiElement handleElementRename(java.lang.String newName) throws IncorrectOperationException
PsiReference
handleElementRename
in interface PsiReference
handleElementRename
in class PsiReferenceBase<PsiJavaModuleReferenceElement>
newName
- the new name of the target element.IncorrectOperationException
- if the rename cannot be handled for some reason.