public class DomResolveConverter<T extends DomElement> extends ResolvingConverter<T>
DomElement
s by name in a defined scope. The scope is taken
from corresponding DomFileDescription.getResolveScope(GenericDomValue)
.ResolvingConverter.StringConverter, ResolvingConverter.WrappedResolvingConverter<T>
BOOLEAN_CONVERTER, EMPTY_CONVERTER
INTEGER_CONVERTER
Constructor and Description |
---|
DomResolveConverter(java.lang.Class<T> aClass) |
Modifier and Type | Method and Description |
---|---|
static <T extends DomElement> |
createConverter(java.lang.Class<T> aClass) |
T |
fromString(java.lang.String s,
ConvertContext context) |
java.lang.String |
getErrorMessage(java.lang.String s,
ConvertContext context) |
PsiElement |
getPsiElement(T resolvedValue) |
LocalQuickFix[] |
getQuickFixes(ConvertContext context) |
java.util.Collection<? extends T> |
getVariants(ConvertContext context) |
boolean |
isReferenceTo(PsiElement element,
java.lang.String stringValue,
T resolveResult,
ConvertContext context)
Delegate from
PsiReference.isReferenceTo(com.intellij.psi.PsiElement) |
java.lang.String |
toString(T t,
ConvertContext context) |
bindReference, canResolveTo, createLookupElement, getAdditionalVariants, getAdditionalVariants, handleElementRename, resolve
public DomResolveConverter(java.lang.Class<T> aClass)
public static <T extends DomElement> DomResolveConverter<T> createConverter(java.lang.Class<T> aClass)
public final T fromString(java.lang.String s, ConvertContext context)
fromString
in class Converter<T extends DomElement>
public PsiElement getPsiElement(T resolvedValue)
getPsiElement
in class ResolvingConverter<T extends DomElement>
resolvedValue
- Converter.fromString(String, ConvertContext)
resultPsiReference
will resolvepublic boolean isReferenceTo(PsiElement element, java.lang.String stringValue, T resolveResult, ConvertContext context)
ResolvingConverter
PsiReference.isReferenceTo(com.intellij.psi.PsiElement)
isReferenceTo
in class ResolvingConverter<T extends DomElement>
element
- elementstringValue
- string valueresolveResult
- resolve resultcontext
- contextpublic java.lang.String getErrorMessage(java.lang.String s, ConvertContext context)
getErrorMessage
in class ResolvingConverter<T extends DomElement>
s
- string value that couldn't be resolvedcontext
- contextpublic final java.lang.String toString(T t, ConvertContext context)
toString
in class Converter<T extends DomElement>
public java.util.Collection<? extends T> getVariants(ConvertContext context)
getVariants
in class ResolvingConverter<T extends DomElement>
context
- contextpublic LocalQuickFix[] getQuickFixes(ConvertContext context)
getQuickFixes
in class ResolvingConverter<T extends DomElement>
context
- context