public abstract class JavaRefactoringActionHandlerFactory
extends java.lang.Object
Constructor and Description |
---|
JavaRefactoringActionHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
abstract RefactoringActionHandler |
createAnonymousToInnerHandler()
Creates handler for Anonymous To Inner refactoring.
|
abstract RefactoringActionHandler |
createChangeSignatureHandler()
Creates handler for Change Method/Class Signature refactoring.
|
abstract RefactoringActionHandler |
createConvertToInstanceMethodHandler()
Creates handler for Convert To Instance Method refactoring.
|
abstract RefactoringActionHandler |
createEncapsulateFieldsHandler()
Creates handler for Replace Constructor With Factory Method refactoring.
|
abstract RefactoringActionHandler |
createExtractInterfaceHandler()
Creates handler for Extract Interface refactoring.
|
abstract RefactoringActionHandler |
createExtractMethodHandler()
Creates handler for Extract Method refactoring.
|
abstract RefactoringActionHandler |
createExtractSuperclassHandler()
Creates handler for Extract Superclass refactoring.
|
abstract RefactoringActionHandler |
createInheritanceToDelegationHandler() |
abstract RefactoringActionHandler |
createInlineHandler()
Creates handler for Inline refactoring.
|
abstract RefactoringActionHandler |
createIntroduceConstantHandler()
Creates handler for Introduce Constant refactoring.
|
abstract RefactoringActionHandler |
createIntroduceFieldHandler()
Creates handler for Introduce Field refactoring.
|
abstract RefactoringActionHandler |
createIntroduceParameterHandler()
Creates handler for Introduce Parameter refactoring.
|
abstract RefactoringActionHandler |
createIntroduceVariableHandler()
Creates handler for Introduce Variable refactoring.
|
abstract RefactoringActionHandler |
createInvertBooleanHandler()
Creates handler for Invert Boolean refactoring.
|
abstract RefactoringActionHandler |
createMakeMethodStaticHandler()
Creates handler for Make Method Static refactoring.
|
abstract RefactoringActionHandler |
createMethodDuplicatesHandler()
Creates handler for Replace Method Code Duplicates refactoring.
|
abstract RefactoringActionHandler |
createPullUpHandler()
Creates handler for Pull Members Up refactoring.
|
abstract RefactoringActionHandler |
createPushDownHandler()
Creates handler for Push Members Down refactoring.
|
abstract RefactoringActionHandler |
createReplaceConstructorWithFactoryHandler()
Creates handler for Replace Constructor With Factory Method refactoring.
|
abstract RefactoringActionHandler |
createTempWithQueryHandler()
Creates handler for Replace Temp With Query refactoring.
|
abstract RefactoringActionHandler |
createTurnRefsToSuperHandler()
Creates handler for Use Interface Where Possible refactoring.
|
abstract RefactoringActionHandler |
createTypeCookHandler()
Creates handler for Generify (aka Type Cook) refactoring.
|
static JavaRefactoringActionHandlerFactory |
getInstance() |
public static JavaRefactoringActionHandlerFactory getInstance()
public abstract RefactoringActionHandler createAnonymousToInnerHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
is not implemented.
public abstract RefactoringActionHandler createPullUpHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts either a PsiClass
, PsiField
or PsiMethod
.
In latter two cases, elements[0]
is a member that will be preselected.
public abstract RefactoringActionHandler createPushDownHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts either a PsiClass
, PsiField
or PsiMethod
.
In latter two cases, elements[0]
is a member that will be preselected.
public abstract RefactoringActionHandler createTurnRefsToSuperHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiClass
.
public abstract RefactoringActionHandler createTempWithQueryHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
is not implemented.
public abstract RefactoringActionHandler createIntroduceParameterHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts either 1 PsiExpression
, that will be an initializer for introduced parameter,
or 1 PsiLocalVariable
, that will be replaced with introduced parameter.
public abstract RefactoringActionHandler createMakeMethodStaticHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiMethod
.
public abstract RefactoringActionHandler createConvertToInstanceMethodHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiMethod
.
public abstract RefactoringActionHandler createReplaceConstructorWithFactoryHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts either a PsiMethod
that is a constructor, or a PsiClass
with implicit default constructor.
public abstract RefactoringActionHandler createEncapsulateFieldsHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts either a PsiClass
or any number of PsiField
s.
public abstract RefactoringActionHandler createMethodDuplicatesHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts one PsiMethod
.
public abstract RefactoringActionHandler createChangeSignatureHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts either 1 PsiMethod
or 1 PsiClass
public abstract RefactoringActionHandler createExtractSuperclassHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiClass
.
public abstract RefactoringActionHandler createTypeCookHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts any number of arbitrary PsiElement
s. All code inside these elements will be generified.
public abstract RefactoringActionHandler createInlineHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 inlinable PsiElement
(method, local variable or constant).
public abstract RefactoringActionHandler createExtractMethodHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
is not implemented.
public abstract RefactoringActionHandler createInheritanceToDelegationHandler()
public abstract RefactoringActionHandler createExtractInterfaceHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiClass
.
public abstract RefactoringActionHandler createIntroduceFieldHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts either 1 PsiExpression
, that will be an initializer for introduced field,
or 1 PsiLocalVariable
, that will be replaced with introduced field.
public abstract RefactoringActionHandler createIntroduceVariableHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiExpression
, that will be an initializer for introduced variable.
public abstract RefactoringActionHandler createIntroduceConstantHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts either 1 PsiExpression
, that will be an initializer for introduced constant,
or 1 PsiLocalVariable
, that will be replaced with introduced constant.
public abstract RefactoringActionHandler createInvertBooleanHandler()
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiMethod
, that will be inverted