public class WebReference extends PsiReferenceBase<PsiElement>
PsiReferenceBase.Immediate<T extends PsiElement>, PsiReferenceBase.Poly<T extends PsiElement>myElement, mySoftARRAY_FACTORY, EMPTY_ARRAY| Constructor and Description |
|---|
WebReference(PsiElement element) |
WebReference(PsiElement element,
java.lang.String url) |
WebReference(PsiElement element,
TextRange textRange) |
WebReference(PsiElement element,
TextRange textRange,
java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUrl() |
static boolean |
isWebReferenceWorthy(PsiElement element)
Optimization method to greatly reduce frequency of potentially expensive
PsiElement.getReferences() calls |
PsiElement |
resolve()
Returns the element which is the target of the reference.
|
bindToElement, calculateDefaultRangeInElement, createSelfReference, createSelfReference, getCanonicalText, getElement, getRangeInElement, getValue, handleElementRename, isReferenceTo, isSoft, setRangeInElement, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVariants, resolveReference, resolvesTogetAbsoluteRangepublic WebReference(PsiElement element)
public WebReference(PsiElement element, java.lang.String url)
public WebReference(PsiElement element, TextRange textRange)
public WebReference(PsiElement element, TextRange textRange, java.lang.String url)
public PsiElement resolve()
PsiReferencenull if it was not possible to resolve the reference to a valid target.PsiPolyVariantReference.multiResolve(boolean)public java.lang.String getUrl()
public static boolean isWebReferenceWorthy(PsiElement element)
PsiElement.getReferences() calls