public class PsiClassConverter extends Converter<PsiClass> implements CustomReferenceConverter<PsiClass>
Modifier and Type | Class and Description |
---|---|
static class |
PsiClassConverter.AnnotationType |
static class |
PsiClassConverter.EnumType |
EMPTY_CONVERTER, INTEGER_CONVERTER
Constructor and Description |
---|
PsiClassConverter() |
Modifier and Type | Method and Description |
---|---|
protected JavaClassReferenceProvider |
createClassReferenceProvider(GenericDomValue<PsiClass> genericDomValue,
ConvertContext context,
ExtendClass extendClass) |
static JavaClassReferenceProvider |
createJavaClassReferenceProvider(GenericDomValue genericDomValue,
ExtendClass extendClass,
JavaClassReferenceProvider provider) |
PsiReference [] |
createReferences(GenericDomValue<PsiClass> 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) |
java.lang.String |
getErrorMessage(java.lang.String s,
ConvertContext context) |
protected GlobalSearchScope |
getScope(ConvertContext context) |
java.lang.String |
toString(PsiClass t,
ConvertContext context) |
public PsiClass fromString(java.lang.String s, ConvertContext context)
fromString
in class Converter<PsiClass>
public java.lang.String getErrorMessage(java.lang.String s, ConvertContext context)
getErrorMessage
in class Converter<PsiClass>
s
- string value that couldn't be resolvedcontext
- contextpublic java.lang.String toString(PsiClass t, ConvertContext context)
public PsiReference [] createReferences(GenericDomValue<PsiClass> 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<PsiClass>
genericDomValue
- GenericDomValue in questionelement
- corresponding PSI elementcontext
- ConvertContext
PsiReference
s for the valueprotected JavaClassReferenceProvider createClassReferenceProvider(GenericDomValue<PsiClass> genericDomValue, ConvertContext context, ExtendClass extendClass)
public static JavaClassReferenceProvider createJavaClassReferenceProvider(GenericDomValue genericDomValue, ExtendClass extendClass, JavaClassReferenceProvider provider)
protected GlobalSearchScope getScope(ConvertContext context)