public class ImportClassFix extends ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
ImportClassFixBase.Result
PriorityAction.Priority
EMPTY_ARRAY
Constructor and Description |
---|
ImportClassFix(PsiJavaCodeReferenceElement element) |
createAddImportAction, doFix, filterAssignableFrom, filterBySuperMethods, fixSilently, getClassesToImport, getClassesToImport, getEndOffset, getFamilyName, getStartOffset, getText, invoke, isAddUnambiguousImportsOnTheFlyEnabled, isAvailable, showHint, startInWriteAction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementToMakeWritable
getPriority
public ImportClassFix(PsiJavaCodeReferenceElement element)
protected java.lang.String getReferenceName(PsiJavaCodeReferenceElement reference)
getReferenceName
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
protected PsiElement getReferenceNameElement(PsiJavaCodeReferenceElement reference)
getReferenceNameElement
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
protected void bindReference(PsiReference ref, PsiClass targetClass)
bindReference
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
protected boolean hasTypeParameters(PsiJavaCodeReferenceElement reference)
hasTypeParameters
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
protected java.lang.String getQualifiedName(PsiJavaCodeReferenceElement reference)
getQualifiedName
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
protected boolean isQualified(PsiJavaCodeReferenceElement reference)
isQualified
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
protected boolean hasUnresolvedImportWhichCanImport(PsiFile psiFile, java.lang.String name)
hasUnresolvedImportWhichCanImport
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
protected java.lang.String getRequiredMemberName(PsiJavaCodeReferenceElement reference)
getRequiredMemberName
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
protected boolean canReferenceClass(PsiJavaCodeReferenceElement ref)
canReferenceClass
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
protected java.util.List<PsiClass> filterByContext(java.util.List<PsiClass> candidates, PsiJavaCodeReferenceElement ref)
filterByContext
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>
protected boolean isAccessible(PsiMember member, PsiJavaCodeReferenceElement reference)
isAccessible
in class ImportClassFixBase<PsiJavaCodeReferenceElement,PsiJavaCodeReferenceElement>