public abstract class AbstractMemberResolveConverter extends ResolvingConverter<PsiMember>
ResolvingConverter.StringConverter, ResolvingConverter.WrappedResolvingConverter<T>
BOOLEAN_CONVERTER, EMPTY_CONVERTER
INTEGER_CONVERTER
Constructor and Description |
---|
AbstractMemberResolveConverter() |
canResolveTo, createLookupElement, getAdditionalVariants, getAdditionalVariants, getPsiElement, isReferenceTo, resolve
protected abstract PsiClass getTargetClass(ConvertContext context)
protected abstract PropertyMemberType [] getMemberTypes(ConvertContext context)
protected PsiType getPsiType(ConvertContext context)
protected boolean isLookDeep()
protected java.lang.String getPropertyName(java.lang.String s, ConvertContext context)
public PsiMember fromString(java.lang.String s, ConvertContext context)
fromString
in class Converter<PsiMember>
public java.lang.String toString(PsiMember t, ConvertContext context)
public java.lang.String getErrorMessage(java.lang.String s, ConvertContext context)
getErrorMessage
in class ResolvingConverter<PsiMember>
s
- string value that couldn't be resolvedcontext
- contextpublic java.util.Collection<? extends PsiMember> getVariants(ConvertContext context)
getVariants
in class ResolvingConverter<PsiMember>
context
- contextprotected boolean methodSuits(PsiMethod psiMethod)
protected boolean fieldSuits(PsiField psiField)
public LocalQuickFix[] getQuickFixes(ConvertContext context)
getQuickFixes
in class ResolvingConverter<PsiMember>
context
- contextpublic void handleElementRename(GenericDomValue<PsiMember> genericValue, ConvertContext context, java.lang.String newElementName)
ResolvingConverter
PsiReference.handleElementRename(String)
handleElementRename
in class ResolvingConverter<PsiMember>
genericValue
- generic valuecontext
- contextnewElementName
- new element namepublic void bindReference(GenericDomValue<PsiMember> genericValue, ConvertContext context, PsiElement newTarget)
ResolvingConverter
PsiReference.bindToElement(com.intellij.psi.PsiElement)
bindReference
in class ResolvingConverter<PsiMember>
genericValue
- generic valuecontext
- contextnewTarget
- new target