public class ExtractMethodObjectProcessor.MyExtractMethodProcessor extends ExtractMethodProcessor
myArtificialOutputVariable, myCanBeChainedConstructor, myCanBeStatic, myControlFlowWrapper, myDuplicates, myElements, myExtractedMethod, myFirstExitStatementCopy, myGenerateConditionalExit, myHasExpressionOutput, myInitialMethodName, myInputVariables, myIsChainedConstructor, myMethodName, myMethodVisibility, myNotNullConditionalCheck, myNullability, myNullConditionalCheck, myOutputVariable, myOutputVariables, myProject, myRefactoringName, myReturnType, myStatic, myTargetClass, myThrownExceptions, myTypeParameterList, myVariableDatum, SIGNATURE_CHANGE_ALLOWED
Constructor and Description |
---|
MyExtractMethodProcessor(Project project,
Editor editor,
PsiElement[] elements,
PsiType forcedReturnType,
java.lang.String refactoringName,
java.lang.String initialMethodName,
java.lang.String helpId) |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(AbstractExtractDialog dialog) |
protected boolean |
checkOutputVariablesCount() |
protected AbstractExtractDialog |
createExtractMethodDialog(boolean direct) |
protected void |
declareNecessaryVariablesAfterCall(PsiVariable outputVariable) |
protected PsiExpression |
expressionToReplace(PsiExpression expression) |
boolean |
generatesConditionalExit() |
protected void |
initDuplicates(java.util.Set<TextRange> textRanges) |
boolean |
initParametrizedDuplicates(boolean showDialog) |
protected boolean |
insertNotNullCheckIfPossible() |
protected boolean |
isFoldingApplicable() |
protected boolean |
isNeedToChangeCallContext() |
PsiElement |
processMatch(Match match) |
addExtractedMethod, addToMethodCallLocation, buildMultipleOutputMessageError, canBeStatic, changeParamName, chooseAnchor, defineVariablesForUnselectedParameters, deleteExtracted, doExtract, doNotPassParameter, doRefactoring, estimateDuplicatesCount, findOccurrences, generateEmptyMethod, generateMethodCall, getAnchor, getAnyDuplicates, getArtificialOutputVariable, getConfirmDuplicatePrompt, getDuplicates, getEffectivelyLocalVariables, getElements, getExactDuplicatesFinder, getExtractedMethod, getInputVariables, getMatchMethodCallExpression, getMethodCall, getMethodName, getOutputVariables, getParameterNameGenerator, getParametrizedDuplicates, getProject, getReplaceDuplicatesTitle, getReturnType, getTargetClass, getThrownExceptions, getTypeParameterList, hasDuplicates, hasDuplicates, isCanBeStatic, isDeclaredInside, isOutputVariable, isPreviewDuplicates, isStatic, prepare, prepare, prepareSignature, previewRefactoring, setChainedConstructor, setDataFromInputVariables, setMethodCall, setMethodName, setMethodVisibility, setPreviewSupported, setShowErrorDialogs, showDialog, showDialog, showMultipleOutputMessage, suggestInitialMethodName, testNullability, testPrepare, testPrepare, testRun, testTargetClass
public MyExtractMethodProcessor(Project project, Editor editor, PsiElement[] elements, PsiType forcedReturnType, java.lang.String refactoringName, java.lang.String initialMethodName, java.lang.String helpId)
protected void initDuplicates(java.util.Set<TextRange> textRanges)
initDuplicates
in class ExtractMethodProcessor
public boolean initParametrizedDuplicates(boolean showDialog)
initParametrizedDuplicates
in class ExtractMethodProcessor
protected boolean insertNotNullCheckIfPossible()
insertNotNullCheckIfPossible
in class ExtractMethodProcessor
protected boolean isNeedToChangeCallContext()
isNeedToChangeCallContext
in class ExtractMethodProcessor
protected void apply(AbstractExtractDialog dialog)
apply
in class ExtractMethodProcessor
protected AbstractExtractDialog createExtractMethodDialog(boolean direct)
createExtractMethodDialog
in class ExtractMethodProcessor
protected PsiExpression expressionToReplace(PsiExpression expression)
expressionToReplace
in class ExtractMethodProcessor
protected boolean checkOutputVariablesCount()
checkOutputVariablesCount
in class ExtractMethodProcessor
public PsiElement processMatch(Match match) throws IncorrectOperationException
processMatch
in interface MatchProvider
processMatch
in class ExtractMethodProcessor
IncorrectOperationException
protected void declareNecessaryVariablesAfterCall(PsiVariable outputVariable) throws IncorrectOperationException
declareNecessaryVariablesAfterCall
in class ExtractMethodProcessor
IncorrectOperationException
protected boolean isFoldingApplicable()
isFoldingApplicable
in class ExtractMethodProcessor
public boolean generatesConditionalExit()