public class InlineMethodProcessor extends BaseRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeExceptionmyPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope| Constructor and Description | 
|---|
| InlineMethodProcessor(Project project,
                     PsiMethod method,
                     PsiJavaCodeReferenceElement reference,
                     Editor editor,
                     boolean isInlineThisOnly) | 
| InlineMethodProcessor(Project project,
                     PsiMethod method,
                     PsiJavaCodeReferenceElement reference,
                     Editor editor,
                     boolean isInlineThisOnly,
                     boolean searchInComments,
                     boolean searchForTextOccurrences) | 
| InlineMethodProcessor(Project project,
                     PsiMethod method,
                     PsiJavaCodeReferenceElement reference,
                     Editor editor,
                     boolean isInlineThisOnly,
                     boolean searchInComments,
                     boolean searchForTextOccurrences,
                     boolean isDeleteTheDeclaration) | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | addInaccessibleMemberConflicts(PsiElement element,
                              UsageInfo[] usages,
                              ReferencedElementsCollector collector,
                              MultiMap<PsiElement,java.lang.String> conflicts) | 
| static boolean | checkBadReturns(PsiMethod method) | 
| static boolean | checkBadReturns(PsiReturnStatement[] returns,
               PsiCodeBlock body) | 
| static java.lang.String | checkCalledInSuperOrThisExpr(PsiCodeBlock methodBody,
                            PsiElement element)Deprecated. 
 | 
| static java.lang.String | checkUnableToInsertCodeBlock(PsiCodeBlock methodBody,
                            PsiElement element) | 
| protected UsageViewDescriptor | createUsageViewDescriptor(UsageInfo [] usages) | 
| protected UsageInfo [] | findUsages()Is called inside atomic action. | 
| protected RefactoringEventData | getBeforeData() | 
| protected java.lang.String | getCommandName() | 
| protected java.util.Collection<? extends PsiElement> | getElementsToWrite(UsageViewDescriptor descriptor) | 
| protected java.lang.String | getRefactoringId() | 
| static void | inlineConstructorCall(PsiCall constructorCall) | 
| void | inlineMethodCall(PsiReferenceExpression ref) | 
| protected boolean | isPreviewUsages(UsageInfo [] usages)Is called inside atomic action. | 
| protected void | performRefactoring(UsageInfo [] usages)Is called in a command and inside atomic action. | 
| protected boolean | preprocessUsages(Ref<UsageInfo[]> refUsages)Is called inside atomic action. | 
| protected void | refreshElements(PsiElement [] elements)is called when usage search is re-run. | 
createConflictsDialog, customizeUsagesView, doRun, execute, getAfterData, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsagespublic InlineMethodProcessor(Project project, PsiMethod method, PsiJavaCodeReferenceElement reference, Editor editor, boolean isInlineThisOnly)
public InlineMethodProcessor(Project project, PsiMethod method, PsiJavaCodeReferenceElement reference, Editor editor, boolean isInlineThisOnly, boolean searchInComments, boolean searchForTextOccurrences)
public InlineMethodProcessor(Project project, PsiMethod method, PsiJavaCodeReferenceElement reference, Editor editor, boolean isInlineThisOnly, boolean searchInComments, boolean searchForTextOccurrences, boolean isDeleteTheDeclaration)
protected java.lang.String getCommandName()
getCommandName in class BaseRefactoringProcessorprotected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor in class BaseRefactoringProcessorprotected UsageInfo [] findUsages()
BaseRefactoringProcessorfindUsages in class BaseRefactoringProcessorprotected boolean isPreviewUsages(UsageInfo [] usages)
BaseRefactoringProcessorisPreviewUsages in class BaseRefactoringProcessorprotected void refreshElements(PsiElement [] elements)
BaseRefactoringProcessorrefreshElements in class BaseRefactoringProcessorelements - - refreshed elements that are returned by UsageViewDescriptor.getElements()protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessorpreprocessUsages in class BaseRefactoringProcessorrefUsages - usages to be filteredpublic static void addInaccessibleMemberConflicts(PsiElement element, UsageInfo[] usages, ReferencedElementsCollector collector, MultiMap<PsiElement,java.lang.String> conflicts)
protected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessorperformRefactoring in class BaseRefactoringProcessorprotected java.lang.String getRefactoringId()
getRefactoringId in class BaseRefactoringProcessorprotected RefactoringEventData getBeforeData()
getBeforeData in class BaseRefactoringProcessorpublic static void inlineConstructorCall(PsiCall constructorCall)
public void inlineMethodCall(PsiReferenceExpression ref) throws IncorrectOperationException
IncorrectOperationException@Deprecated public static java.lang.String checkCalledInSuperOrThisExpr(PsiCodeBlock methodBody, PsiElement element)
checkUnableToInsertCodeBlock(PsiCodeBlock, PsiElement)public static java.lang.String checkUnableToInsertCodeBlock(PsiCodeBlock methodBody, PsiElement element)
public static boolean checkBadReturns(PsiMethod method)
public static boolean checkBadReturns(PsiReturnStatement[] returns, PsiCodeBlock body)
protected java.util.Collection<? extends PsiElement> getElementsToWrite(UsageViewDescriptor descriptor)
getElementsToWrite in class BaseRefactoringProcessor