public abstract class JavaRefactoringFactory extends RefactoringFactory
Constructor and Description |
---|
JavaRefactoringFactory() |
Modifier and Type | Method and Description |
---|---|
abstract ConvertToInstanceMethodRefactoring |
createConvertToInstanceMethod(PsiMethod method,
PsiParameter targetParameter) |
abstract MakeStaticRefactoring<PsiClass> |
createMakeClassStatic(PsiClass aClass,
boolean replaceUsages,
java.lang.String classParameterName,
PsiField[] fields,
java.lang.String[] names) |
abstract MakeStaticRefactoring<PsiMethod> |
createMakeMethodStatic(PsiMethod method,
boolean replaceUsages,
java.lang.String classParameterName,
PsiField[] fields,
java.lang.String[] names) |
abstract MoveClassesOrPackagesRefactoring |
createMoveClassesOrPackages(PsiElement[] elements,
MoveDestination moveDestination) |
abstract MoveInnerRefactoring |
createMoveInner(PsiClass innerClass,
java.lang.String newName,
boolean passOuterClass,
java.lang.String parameterName) |
abstract MoveMembersRefactoring |
createMoveMembers(PsiMember[] elements,
java.lang.String targetClassQualifiedName,
java.lang.String newVisibility) |
abstract MoveMembersRefactoring |
createMoveMembers(PsiMember[] elements,
java.lang.String targetClassQualifiedName,
java.lang.String newVisibility,
boolean makeEnumConstants) |
abstract JavaRenameRefactoring |
createRename(PsiElement element,
java.lang.String newName) |
abstract ReplaceConstructorWithFactoryRefactoring |
createReplaceConstructorWithFactory(PsiClass originalClass,
PsiClass targetClass,
java.lang.String factoryName) |
abstract ReplaceConstructorWithFactoryRefactoring |
createReplaceConstructorWithFactory(PsiMethod method,
PsiClass targetClass,
java.lang.String factoryName) |
abstract MoveDestination |
createSourceFolderPreservingMoveDestination(java.lang.String targetPackageQualifiedName)
Creates move destination for a specified package that preserves source folders for moved items.
|
abstract MoveDestination |
createSourceRootMoveDestination(java.lang.String targetPackageQualifiedName,
VirtualFile sourceRoot)
Creates move destination for a specified package that moves all items to a specified source folder
|
abstract TurnRefsToSuperRefactoring |
createTurnRefsToSuper(PsiClass aClass,
PsiClass aSuper,
boolean replaceInstanceOf) |
abstract TypeCookRefactoring |
createTypeCook(PsiElement[] elements,
boolean dropObsoleteCasts,
boolean leaveObjectsRaw,
boolean preserveRawArrays,
boolean exhaustive,
boolean cookObjects,
boolean cookToWildcards) |
static JavaRefactoringFactory |
getInstance(Project project) |
createRename, createSafeDelete
public static JavaRefactoringFactory getInstance(Project project)
public abstract JavaRenameRefactoring createRename(PsiElement element, java.lang.String newName)
createRename
in class RefactoringFactory
public abstract MoveInnerRefactoring createMoveInner(PsiClass innerClass, java.lang.String newName, boolean passOuterClass, java.lang.String parameterName)
public abstract MoveDestination createSourceFolderPreservingMoveDestination(java.lang.String targetPackageQualifiedName)
public abstract MoveDestination createSourceRootMoveDestination(java.lang.String targetPackageQualifiedName, VirtualFile sourceRoot)
public abstract MoveClassesOrPackagesRefactoring createMoveClassesOrPackages(PsiElement[] elements, MoveDestination moveDestination)
public abstract MoveMembersRefactoring createMoveMembers(PsiMember[] elements, java.lang.String targetClassQualifiedName, java.lang.String newVisibility)
public abstract MoveMembersRefactoring createMoveMembers(PsiMember[] elements, java.lang.String targetClassQualifiedName, java.lang.String newVisibility, boolean makeEnumConstants)
public abstract MakeStaticRefactoring<PsiMethod> createMakeMethodStatic(PsiMethod method, boolean replaceUsages, java.lang.String classParameterName, PsiField[] fields, java.lang.String[] names)
public abstract MakeStaticRefactoring<PsiClass> createMakeClassStatic(PsiClass aClass, boolean replaceUsages, java.lang.String classParameterName, PsiField[] fields, java.lang.String[] names)
public abstract ConvertToInstanceMethodRefactoring createConvertToInstanceMethod(PsiMethod method, PsiParameter targetParameter)
public abstract TurnRefsToSuperRefactoring createTurnRefsToSuper(PsiClass aClass, PsiClass aSuper, boolean replaceInstanceOf)
public abstract ReplaceConstructorWithFactoryRefactoring createReplaceConstructorWithFactory(PsiMethod method, PsiClass targetClass, java.lang.String factoryName)
public abstract ReplaceConstructorWithFactoryRefactoring createReplaceConstructorWithFactory(PsiClass originalClass, PsiClass targetClass, java.lang.String factoryName)
public abstract TypeCookRefactoring createTypeCook(PsiElement[] elements, boolean dropObsoleteCasts, boolean leaveObjectsRaw, boolean preserveRawArrays, boolean exhaustive, boolean cookObjects, boolean cookToWildcards)