public abstract class TurnRefsToSuperProcessorBase extends BaseRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
Modifier and Type | Field and Description |
---|---|
protected PsiClass |
myClass |
protected java.util.HashMap<PsiElement,com.intellij.refactoring.turnRefsToSuper.TurnRefsToSuperProcessorBase.Node> |
myElementToNode |
protected PsiManager |
myManager |
protected java.util.HashSet<PsiElement> |
myMarkedNodes |
protected boolean |
myReplaceInstanceOf |
protected PsiSearchHelper |
mySearchHelper |
protected java.util.Map<SmartPsiElementPointer,java.lang.String> |
myVariablesRenames |
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Modifier | Constructor and Description |
---|---|
protected |
TurnRefsToSuperProcessorBase(Project project,
boolean replaceInstanceOf,
java.lang.String superClassName) |
Modifier and Type | Method and Description |
---|---|
protected void |
addLink(PsiElement source,
PsiElement target) |
protected boolean |
canTurnToSuper(PsiElement ref) |
protected java.util.ArrayList<UsageInfo> |
detectTurnToSuperRefs(PsiReference[] refs,
java.util.ArrayList<UsageInfo> result) |
protected abstract boolean |
isInSuper(PsiElement member) |
protected abstract boolean |
isSuperInheritor(PsiClass aClass) |
protected void |
markNodes() |
protected void |
performVariablesRenaming() |
protected boolean |
preprocessUsages(Ref<UsageInfo[]> refUsages)
Is called inside atomic action.
|
protected static void |
processTurnToSuperRefs(UsageInfo[] usages,
PsiClass aSuper) |
createConflictsDialog, createUsageViewDescriptor, customizeUsagesView, doRun, execute, findUsages, getAfterData, getBeforeData, getCommandName, getElementsToWrite, getRefactoringId, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, performRefactoring, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, refreshElements, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
protected PsiClass myClass
protected final boolean myReplaceInstanceOf
protected PsiManager myManager
protected PsiSearchHelper mySearchHelper
protected java.util.HashSet<PsiElement> myMarkedNodes
protected java.util.HashMap<PsiElement,com.intellij.refactoring.turnRefsToSuper.TurnRefsToSuperProcessorBase.Node> myElementToNode
protected java.util.Map<SmartPsiElementPointer,java.lang.String> myVariablesRenames
protected TurnRefsToSuperProcessorBase(Project project, boolean replaceInstanceOf, java.lang.String superClassName)
protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class BaseRefactoringProcessor
refUsages
- usages to be filteredprotected void performVariablesRenaming()
protected java.util.ArrayList<UsageInfo> detectTurnToSuperRefs(PsiReference[] refs, java.util.ArrayList<UsageInfo> result)
protected boolean canTurnToSuper(PsiElement ref)
protected static void processTurnToSuperRefs(UsageInfo[] usages, PsiClass aSuper) throws IncorrectOperationException
IncorrectOperationException
protected void markNodes()
protected abstract boolean isSuperInheritor(PsiClass aClass)
protected abstract boolean isInSuper(PsiElement member)
protected void addLink(PsiElement source, PsiElement target)