public class IntroduceParameterProcessor extends BaseRefactoringProcessor implements IntroduceParameterData
| Modifier and Type | Class and Description |
|---|---|
class |
IntroduceParameterProcessor.AnySameNameVariables |
static class |
IntroduceParameterProcessor.AnySupers |
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeExceptionIntroduceParameterData.ExpressionWrapper<RealExpression extends PsiElement>myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope| Constructor and Description |
|---|
IntroduceParameterProcessor(Project project,
PsiMethod methodToReplaceIn,
PsiMethod methodToSearchFor,
PsiExpression parameterInitializer,
PsiExpression expressionToSearch,
PsiLocalVariable localVariable,
boolean removeLocalVariable,
java.lang.String parameterName,
boolean replaceAllOccurrences,
int replaceFieldsWithGetters,
boolean declareFinal,
boolean generateDelegate,
PsiType forcedType,
TIntArrayList parametersToRemove)
if expressionToSearch is null, search for localVariable
|
createConflictsDialog, customizeUsagesView, doRun, execute, getElementsToWrite, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, refreshElements, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsagespublic IntroduceParameterProcessor(Project project, PsiMethod methodToReplaceIn, PsiMethod methodToSearchFor, PsiExpression parameterInitializer, PsiExpression expressionToSearch, PsiLocalVariable localVariable, boolean removeLocalVariable, java.lang.String parameterName, boolean replaceAllOccurrences, int replaceFieldsWithGetters, boolean declareFinal, boolean generateDelegate, PsiType forcedType, TIntArrayList parametersToRemove)
public void setParameterInitializer(PsiExpression parameterInitializer)
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor in class BaseRefactoringProcessorpublic PsiType getForcedType()
getForcedType in interface IntroduceParameterDatapublic int getReplaceFieldsWithGetters()
getReplaceFieldsWithGetters in interface IntroduceParameterDatapublic void setReplaceFieldsWithGetters(int replaceFieldsWithGetters)
protected UsageInfo [] findUsages()
BaseRefactoringProcessorfindUsages in class BaseRefactoringProcessorprotected PsiElement[] getOccurrences()
public boolean hasConflicts()
protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessorpreprocessUsages in class BaseRefactoringProcessorrefUsages - usages to be filteredprotected java.lang.String getRefactoringId()
getRefactoringId in class BaseRefactoringProcessorprotected RefactoringEventData getBeforeData()
getBeforeData in class BaseRefactoringProcessorprotected RefactoringEventData getAfterData(UsageInfo [] usages)
getAfterData in class BaseRefactoringProcessorprotected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessorperformRefactoring in class BaseRefactoringProcessorprotected boolean isReplaceDuplicates()
protected java.lang.String getCommandName()
getCommandName in class BaseRefactoringProcessorpublic PsiMethod getMethodToReplaceIn()
getMethodToReplaceIn in interface IntroduceParameterDatapublic PsiMethod getMethodToSearchFor()
getMethodToSearchFor in interface IntroduceParameterDatapublic JavaExpressionWrapper getParameterInitializer()
getParameterInitializer in interface IntroduceParameterDatapublic java.lang.String getParameterName()
getParameterName in interface IntroduceParameterDatapublic boolean isDeclareFinal()
isDeclareFinal in interface IntroduceParameterDatapublic boolean isGenerateDelegate()
isGenerateDelegate in interface IntroduceParameterDatapublic TIntArrayList getParametersToRemove()
getParametersToRemove in interface IntroduceParameterDatapublic Project getProject()
getProject in interface IntroduceParameterData