protected class QuotedValueConverter.MyPsiReference extends PsiPolyVariantReferenceBase<PsiElement> implements EmptyResolveMessageProvider
PsiReferenceBase.Immediate<T extends PsiElement>, PsiReferenceBase.Poly<T extends PsiElement>
Modifier and Type | Field and Description |
---|---|
protected ConvertContext |
myContext |
protected GenericDomValue<T> |
myGenericDomValue |
myElement, mySoft
ARRAY_FACTORY, EMPTY_ARRAY
Constructor and Description |
---|
MyPsiReference(PsiElement element,
TextRange range,
boolean isSoft,
ConvertContext context,
GenericDomValue<T> genericDomValue,
boolean badQuotation) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUnresolvedMessagePattern()
Returns custom unresolved message pattern.
|
java.lang.Object [] |
getVariants()
Returns the array of String,
PsiElement and/or LookupElement
instances representing all identifiers that are visible at the location of the reference. |
ResolveResult [] |
multiResolve(boolean incompleteCode)
Returns the results of resolving the reference.
|
isReferenceTo, resolve
bindToElement, calculateDefaultRangeInElement, createSelfReference, createSelfReference, getCanonicalText, getElement, getRangeInElement, getValue, handleElementRename, isSoft, setRangeInElement, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
resolveReference
bindToElement, getCanonicalText, getElement, getRangeInElement, handleElementRename, isSoft, resolvesTo
getAbsoluteRange
protected final ConvertContext myContext
protected final GenericDomValue<T> myGenericDomValue
public MyPsiReference(PsiElement element, TextRange range, boolean isSoft, ConvertContext context, GenericDomValue<T> genericDomValue, boolean badQuotation)
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 java.lang.Object [] getVariants()
PsiReference
PsiElement
and/or LookupElement
instances representing all identifiers that are visible at the location of the reference. The contents
of the returned array is used to build the lookup list for basic code completion. (The list
of visible identifiers may not be filtered by the completion prefix string - the
filtering is performed later by the IDE.)
This method is default since 2018.3.
getVariants
in interface PsiReference
public java.lang.String getUnresolvedMessagePattern()
EmptyResolveMessageProvider
MessageFormat.format()
call.
If the call fails, returned value is used as is.
Resulting text should have Sentence capitalization.getUnresolvedMessagePattern
in interface EmptyResolveMessageProvider