public class PsiJavaModuleReferenceImpl extends PsiReferenceBase.Poly<PsiJavaModuleReferenceElement> implements PsiJavaModuleReference
PsiReferenceBase.Immediate<T extends PsiElement>, PsiReferenceBase.Poly<T extends PsiElement>myElement, mySoftARRAY_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.
|
isReferenceTobindToElement, calculateDefaultRangeInElement, createSelfReference, createSelfReference, getElement, getRangeInElement, getValue, isSoft, setRangeInElement, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitresolveReferencebindToElement, getElement, getRangeInElement, getVariants, isReferenceTo, isSoft, resolvesTogetAbsoluteRangepublic PsiJavaModuleReferenceImpl(PsiJavaModuleReferenceElement element)
public java.lang.String getCanonicalText()
PsiReferencegetCanonicalText in interface PsiReferencegetCanonicalText in class PsiReferenceBase<PsiJavaModuleReferenceElement>public PsiJavaModule resolve()
PsiReferenceresolve in interface PsiJavaModuleReferenceresolve in interface PsiReferenceresolve 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)
PsiPolyVariantReferencemultiResolve in interface PsiPolyVariantReferenceincompleteCode - 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
PsiReferencehandleElementRename in interface PsiReferencehandleElementRename in class PsiReferenceBase<PsiJavaModuleReferenceElement>newName - the new name of the target element.IncorrectOperationException - if the rename cannot be handled for some reason.