public class JavaRefactoringActionHandlerFactoryImpl extends JavaRefactoringActionHandlerFactory
Constructor and Description |
---|
JavaRefactoringActionHandlerFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
RefactoringActionHandler |
createAnonymousToInnerHandler()
Creates handler for Anonymous To Inner refactoring.
|
RefactoringActionHandler |
createChangeSignatureHandler()
Creates handler for Change Method/Class Signature refactoring.
|
RefactoringActionHandler |
createConvertToInstanceMethodHandler()
Creates handler for Convert To Instance Method refactoring.
|
RefactoringActionHandler |
createEncapsulateFieldsHandler()
Creates handler for Replace Constructor With Factory Method refactoring.
|
RefactoringActionHandler |
createExtractInterfaceHandler()
Creates handler for Extract Interface refactoring.
|
RefactoringActionHandler |
createExtractMethodHandler()
Creates handler for Extract Method refactoring.
|
RefactoringActionHandler |
createExtractSuperclassHandler()
Creates handler for Extract Superclass refactoring.
|
RefactoringActionHandler |
createInheritanceToDelegationHandler() |
RefactoringActionHandler |
createInlineHandler()
Creates handler for Inline refactoring.
|
RefactoringActionHandler |
createIntroduceConstantHandler()
Creates handler for Introduce Constant refactoring.
|
RefactoringActionHandler |
createIntroduceFieldHandler()
Creates handler for Introduce Field refactoring.
|
RefactoringActionHandler |
createIntroduceParameterHandler()
Creates handler for Introduce Parameter refactoring.
|
RefactoringActionHandler |
createIntroduceVariableHandler()
Creates handler for Introduce Variable refactoring.
|
RefactoringActionHandler |
createInvertBooleanHandler()
Creates handler for Invert Boolean refactoring.
|
RefactoringActionHandler |
createMakeMethodStaticHandler()
Creates handler for Make Method Static refactoring.
|
RefactoringActionHandler |
createMethodDuplicatesHandler()
Creates handler for Replace Method Code Duplicates refactoring.
|
RefactoringActionHandler |
createPullUpHandler()
Creates handler for Pull Members Up refactoring.
|
RefactoringActionHandler |
createPushDownHandler()
Creates handler for Push Members Down refactoring.
|
RefactoringActionHandler |
createReplaceConstructorWithFactoryHandler()
Creates handler for Replace Constructor With Factory Method refactoring.
|
RefactoringActionHandler |
createTempWithQueryHandler()
Creates handler for Replace Temp With Query refactoring.
|
RefactoringActionHandler |
createTurnRefsToSuperHandler()
Creates handler for Use Interface Where Possible refactoring.
|
RefactoringActionHandler |
createTypeCookHandler()
Creates handler for Generify (aka Type Cook) refactoring.
|
getInstance
public JavaRefactoringActionHandlerFactoryImpl()
public RefactoringActionHandler createAnonymousToInnerHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
is not implemented.
createAnonymousToInnerHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createPullUpHandler()
JavaRefactoringActionHandlerFactory
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.
createPullUpHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createPushDownHandler()
JavaRefactoringActionHandlerFactory
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.
createPushDownHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createTurnRefsToSuperHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiClass
.
createTurnRefsToSuperHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createTempWithQueryHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
is not implemented.
createTempWithQueryHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createIntroduceParameterHandler()
JavaRefactoringActionHandlerFactory
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.
createIntroduceParameterHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createMakeMethodStaticHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiMethod
.
createMakeMethodStaticHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createConvertToInstanceMethodHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiMethod
.
createConvertToInstanceMethodHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createReplaceConstructorWithFactoryHandler()
JavaRefactoringActionHandlerFactory
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.
createReplaceConstructorWithFactoryHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createEncapsulateFieldsHandler()
JavaRefactoringActionHandlerFactory
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.
createEncapsulateFieldsHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createMethodDuplicatesHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts one PsiMethod
.
createMethodDuplicatesHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createChangeSignatureHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts either 1 PsiMethod
or 1 PsiClass
createChangeSignatureHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createExtractSuperclassHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiClass
.
createExtractSuperclassHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createTypeCookHandler()
JavaRefactoringActionHandlerFactory
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.
createTypeCookHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createInlineHandler()
JavaRefactoringActionHandlerFactory
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).
createInlineHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createExtractMethodHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
is not implemented.
createExtractMethodHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createInheritanceToDelegationHandler()
createInheritanceToDelegationHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createExtractInterfaceHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiClass
.
createExtractInterfaceHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createIntroduceFieldHandler()
JavaRefactoringActionHandlerFactory
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.
createIntroduceFieldHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createIntroduceVariableHandler()
JavaRefactoringActionHandlerFactory
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.
createIntroduceVariableHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createIntroduceConstantHandler()
JavaRefactoringActionHandlerFactory
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.
createIntroduceConstantHandler
in class JavaRefactoringActionHandlerFactory
public RefactoringActionHandler createInvertBooleanHandler()
JavaRefactoringActionHandlerFactory
RefactoringActionHandler.invoke(com.intellij.openapi.project.Project, com.intellij.psi.PsiElement[], com.intellij.openapi.actionSystem.DataContext)
accepts 1 PsiMethod
, that will be inverted
createInvertBooleanHandler
in class JavaRefactoringActionHandlerFactory