public class ChangeSignatureProcessor extends ChangeSignatureProcessorBase
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
myChangeInfo, myManager, REFACTORING_ID
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
ChangeSignatureProcessor(Project project,
JavaChangeInfo changeInfo) |
ChangeSignatureProcessor(Project project,
PsiMethod method,
boolean generateDelegate,
java.lang.String newVisibility,
java.lang.String newName,
CanonicalTypes.Type newType,
ParameterInfoImpl [] parameterInfo,
ThrownExceptionInfo[] thrownExceptions,
java.util.Set<PsiMethod> propagateParametersMethods,
java.util.Set<PsiMethod> propagateExceptionsMethods) |
ChangeSignatureProcessor(Project project,
PsiMethod method,
boolean generateDelegate,
java.lang.String newVisibility,
java.lang.String newName,
PsiType newType,
ParameterInfoImpl [] parameterInfo) |
ChangeSignatureProcessor(Project project,
PsiMethod method,
boolean generateDelegate,
java.lang.String newVisibility,
java.lang.String newName,
PsiType newType,
ParameterInfoImpl[] parameterInfo,
ThrownExceptionInfo[] exceptionInfos) |
Modifier and Type | Method and Description |
---|---|
static PsiCallExpression |
addDelegatingCallTemplate(PsiMethod delegate,
java.lang.String newName) |
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
JavaChangeInfoImpl |
getChangeInfo() |
protected boolean |
isProcessCovariantOverriders() |
static void |
makeEmptyBody(PsiElementFactory factory,
PsiMethod delegate) |
protected void |
preprocessCovariantOverriders(java.util.List<UsageInfo> covariantOverriderInfos) |
protected boolean |
preprocessUsages(Ref<UsageInfo[]> refUsages)
Is called inside atomic action.
|
protected void |
refreshElements(PsiElement [] elements)
is called when usage search is re-run.
|
collectConflictsFromExtensions, doChangeSignature, filterUsages, findUsages, findUsages, getAfterData, getBeforeData, getCommandName, getRefactoringId, isPreviewUsages, performRefactoring
createConflictsDialog, customizeUsagesView, doRun, execute, getElementsToWrite, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
public ChangeSignatureProcessor(Project project, PsiMethod method, boolean generateDelegate, java.lang.String newVisibility, java.lang.String newName, PsiType newType, ParameterInfoImpl [] parameterInfo)
public ChangeSignatureProcessor(Project project, PsiMethod method, boolean generateDelegate, java.lang.String newVisibility, java.lang.String newName, PsiType newType, ParameterInfoImpl[] parameterInfo, ThrownExceptionInfo[] exceptionInfos)
public ChangeSignatureProcessor(Project project, PsiMethod method, boolean generateDelegate, java.lang.String newVisibility, java.lang.String newName, CanonicalTypes.Type newType, ParameterInfoImpl [] parameterInfo, ThrownExceptionInfo[] thrownExceptions, java.util.Set<PsiMethod> propagateParametersMethods, java.util.Set<PsiMethod> propagateExceptionsMethods)
public ChangeSignatureProcessor(Project project, JavaChangeInfo changeInfo)
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
public JavaChangeInfoImpl getChangeInfo()
getChangeInfo
in class ChangeSignatureProcessorBase
protected void refreshElements(PsiElement [] elements)
BaseRefactoringProcessor
refreshElements
in class BaseRefactoringProcessor
elements
- - refreshed elements that are returned by UsageViewDescriptor.getElements()protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class BaseRefactoringProcessor
refUsages
- usages to be filteredprotected void preprocessCovariantOverriders(java.util.List<UsageInfo> covariantOverriderInfos)
protected boolean isProcessCovariantOverriders()
public static void makeEmptyBody(PsiElementFactory factory, PsiMethod delegate) throws IncorrectOperationException
IncorrectOperationException
public static PsiCallExpression addDelegatingCallTemplate(PsiMethod delegate, java.lang.String newName) throws IncorrectOperationException
IncorrectOperationException