public final class TargetEvaluatorAwareReference extends java.lang.Object implements PsiSymbolReference
Constructor and Description |
---|
TargetEvaluatorAwareReference(PsiReference reference) |
Modifier and Type | Method and Description |
---|---|
TextRange |
getAbsoluteRange() |
PsiElement |
getElement() |
TextRange |
getRangeInElement() |
java.util.Collection<? extends SymbolResolveResult> |
resolveReference() |
boolean |
resolvesTo(Symbol target)
Default implementation checks results from
SymbolReference.resolveReference() . |
public TargetEvaluatorAwareReference(PsiReference reference)
public PsiElement getElement()
getElement
in interface PsiSymbolReference
public TextRange getRangeInElement()
getRangeInElement
in interface PsiSymbolReference
element
which is considered a reference,
e.g. range of `bar` in `foo.bar` qualified reference expressionpublic TextRange getAbsoluteRange()
getAbsoluteRange
in interface PsiSymbolReference
containing file
of the element
which is considered a referencePsiSymbolReference.getRangeInElement()
public boolean resolvesTo(Symbol target)
SymbolReference
SymbolReference.resolveReference()
.
Override this method to skip actual resolution if this reference cannot ever resolve to this target.resolvesTo
in interface SymbolReference
public java.util.Collection<? extends SymbolResolveResult> resolveReference()
resolveReference
in interface SymbolReference