public abstract class ClassValueConverter extends Converter<PsiClass> implements CustomReferenceConverter
EMPTY_CONVERTER, INTEGER_CONVERTER
Constructor and Description |
---|
ClassValueConverter() |
Modifier and Type | Method and Description |
---|---|
abstract PsiReference [] |
createReferences(GenericDomValue genericDomValue,
PsiElement element,
ConvertContext context)
Will be called on creating
PsiReference s for GenericDomValue
Returned PsiReference s should be soft (PsiReference.isSoft() should return true ). |
PsiClass |
fromString(java.lang.String s,
ConvertContext context) |
static ClassValueConverter |
getClassValueConverter() |
static GlobalSearchScope |
getScope(Project project,
Module module,
PsiFile psiFile) |
java.lang.String |
toString(PsiClass psiClass,
ConvertContext context) |
getErrorMessage
public static ClassValueConverter getClassValueConverter()
public PsiClass fromString(java.lang.String s, ConvertContext context)
fromString
in class Converter<PsiClass>
public java.lang.String toString(PsiClass psiClass, ConvertContext context)
public abstract PsiReference [] createReferences(GenericDomValue genericDomValue, PsiElement element, ConvertContext context)
CustomReferenceConverter
PsiReference
s for GenericDomValue
Returned PsiReference
s should be soft (PsiReference.isSoft()
should return true
).
To highlight unresolved references, create a DomElementsInspection
and register it.createReferences
in interface CustomReferenceConverter
genericDomValue
- GenericDomValue in questionelement
- corresponding PSI elementcontext
- ConvertContext
PsiReference
s for the valuepublic static GlobalSearchScope getScope(Project project, Module module, PsiFile psiFile)