public class ReplaceConstructorWithBuilderProcessor extends FixableUsagesRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REFACTORING_NAME |
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
ReplaceConstructorWithBuilderProcessor(Project project,
PsiMethod[] constructors,
java.util.Map<java.lang.String,ParameterData> parametersMap,
java.lang.String className,
java.lang.String packageName,
MoveDestination moveDestination,
boolean createNewBuilderClass) |
Modifier and Type | Method and Description |
---|---|
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
protected void |
findUsages(java.util.List<FixableUsageInfo> usages) |
protected java.lang.String |
getCommandName() |
protected void |
performRefactoring(UsageInfo [] usageInfos)
Is called in a command and inside atomic action.
|
protected boolean |
preprocessUsages(Ref<UsageInfo[]> refUsages)
Is called inside atomic action.
|
checkConflicts, findUsages
createConflictsDialog, customizeUsagesView, doRun, execute, getAfterData, getBeforeData, getElementsToWrite, getRefactoringId, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, refreshElements, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
public static final java.lang.String REFACTORING_NAME
public ReplaceConstructorWithBuilderProcessor(Project project, PsiMethod[] constructors, java.util.Map<java.lang.String,ParameterData> parametersMap, java.lang.String className, java.lang.String packageName, MoveDestination moveDestination, boolean createNewBuilderClass)
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
protected void findUsages(java.util.List<FixableUsageInfo> usages)
findUsages
in class FixableUsagesRefactoringProcessor
protected void performRefactoring(UsageInfo [] usageInfos)
BaseRefactoringProcessor
performRefactoring
in class FixableUsagesRefactoringProcessor
protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class BaseRefactoringProcessor
refUsages
- usages to be filteredprotected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor