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