public class JvmPsiTypeConverterImpl extends JvmPsiTypeConverter implements CustomReferenceConverter<PsiType>
EMPTY_CONVERTER, INTEGER_CONVERTER
Constructor and Description |
---|
JvmPsiTypeConverterImpl() |
Modifier and Type | Method and Description |
---|---|
static PsiType |
convertFromString(java.lang.String s,
ConvertContext context) |
static java.lang.String |
convertToString(PsiType psiType) |
PsiReference [] |
createReferences(GenericDomValue<PsiType> value,
PsiElement element,
ConvertContext context)
Will be called on creating
PsiReference s for GenericDomValue
Returned PsiReference s should be soft (PsiReference.isSoft() should return true ). |
PsiType |
fromString(java.lang.String s,
ConvertContext context) |
java.lang.String |
toString(PsiType psiType,
ConvertContext context) |
getErrorMessage
public PsiType fromString(java.lang.String s, ConvertContext context)
fromString
in class Converter<PsiType>
public static PsiType convertFromString(java.lang.String s, ConvertContext context)
public java.lang.String toString(PsiType psiType, ConvertContext context)
public static java.lang.String convertToString(PsiType psiType)
public PsiReference [] createReferences(GenericDomValue<PsiType> value, 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<PsiType>
value
- GenericDomValue in questionelement
- corresponding PSI elementcontext
- ConvertContext
PsiReference
s for the value