public class CanonicalPsiTypeConverterImpl extends CanonicalPsiTypeConverter implements CustomReferenceConverter<PsiType>
EMPTY_CONVERTER, INTEGER_CONVERTER
Constructor and Description |
---|
CanonicalPsiTypeConverterImpl() |
Modifier and Type | Method and Description |
---|---|
PsiReference [] |
createReferences(GenericDomValue<PsiType> 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 ). |
PsiType |
fromString(java.lang.String s,
ConvertContext context) |
PsiReference[] |
getReferences(PsiType type,
java.lang.String typeText,
int startOffsetInText,
PsiElement element) |
java.lang.String |
toString(PsiType t,
ConvertContext context) |
getErrorMessage
public PsiType fromString(java.lang.String s, ConvertContext context)
fromString
in class Converter<PsiType>
public java.lang.String toString(PsiType t, ConvertContext context)
public PsiReference [] createReferences(GenericDomValue<PsiType> 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<PsiType>
genericDomValue
- GenericDomValue in questionelement
- corresponding PSI elementcontext
- ConvertContext
PsiReference
s for the valuepublic PsiReference[] getReferences(PsiType type, java.lang.String typeText, int startOffsetInText, PsiElement element)