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, testTargetClasspublic 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 ExtractMethodProcessorpublic boolean initParametrizedDuplicates(boolean showDialog)
initParametrizedDuplicates in class ExtractMethodProcessorprotected boolean insertNotNullCheckIfPossible()
insertNotNullCheckIfPossible in class ExtractMethodProcessorprotected boolean isNeedToChangeCallContext()
isNeedToChangeCallContext in class ExtractMethodProcessorprotected void apply(AbstractExtractDialog dialog)
apply in class ExtractMethodProcessorprotected AbstractExtractDialog createExtractMethodDialog(boolean direct)
createExtractMethodDialog in class ExtractMethodProcessorprotected PsiExpression expressionToReplace(PsiExpression expression)
expressionToReplace in class ExtractMethodProcessorprotected boolean checkOutputVariablesCount()
checkOutputVariablesCount in class ExtractMethodProcessorpublic PsiElement processMatch(Match match) throws IncorrectOperationException
processMatch in interface MatchProviderprocessMatch in class ExtractMethodProcessorIncorrectOperationExceptionprotected void declareNecessaryVariablesAfterCall(PsiVariable outputVariable) throws IncorrectOperationException
declareNecessaryVariablesAfterCall in class ExtractMethodProcessorIncorrectOperationExceptionprotected boolean isFoldingApplicable()
isFoldingApplicable in class ExtractMethodProcessorpublic boolean generatesConditionalExit()