|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.refactor.RefactoringFactory
public class RefactoringFactory
Factory for all refactorings
Constructor Summary | |
---|---|
protected |
RefactoringFactory()
Constructor for the RefactoringFactory object |
Method Summary | |
---|---|
AddChildRefactoring |
addChild()
Adds a feature to the Child attribute of the TypeRefactoringFactory object |
AddAbstractParent |
addParent()
Adds a feature to the Parent attribute of the TypeRefactoringFactory object |
ExtractInterfaceRefactoring |
extractInterface()
Extracts the interface of a class into a new interface object |
ExtractMethodRefactoring |
extractMethod()
Extracts code from one method to create a new method |
static RefactoringFactory |
get()
A standard method to get the factory |
MoveClass |
moveClass()
Creates a move class refactoring object |
MoveMethodRefactoring |
moveMethod()
Moves the method into another class |
protected void |
prepare()
Prepare to create a refactoring that operates on files on the disk. |
PushDownFieldRefactoring |
pushDownField()
Moves the field into the parent class |
PushDownMethodRefactoring |
pushDownMethod()
Moves the method into a child class |
PushUpAbstractMethodRefactoring |
pushUpAbstractMethod()
Moves the method signature into the parent class |
PushUpFieldRefactoring |
pushUpField()
Moves the field into the child class |
PushUpMethodRefactoring |
pushUpMethod()
Moves the method into the parent class |
RemoveEmptyClassRefactoring |
removeEmptyClass()
Description of the Method |
RenameClassRefactoring |
renameClass()
Description of the Method |
RenameFieldRefactoring |
renameField()
Renames a field |
RenameMethodRefactoring |
renameMethod()
Moves the method into another class |
RenameParameterRefactoring |
renameParameter()
Renames a parameter |
static void |
setSingleton(RefactoringFactory value)
This allows someone to replace this factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RefactoringFactory()
Method Detail |
---|
public AddChildRefactoring addChild()
public AddAbstractParent addParent()
public MoveClass moveClass()
public RenameClassRefactoring renameClass()
public RemoveEmptyClassRefactoring removeEmptyClass()
public ExtractInterfaceRefactoring extractInterface()
public PushDownFieldRefactoring pushDownField()
public RenameFieldRefactoring renameField()
public PushUpFieldRefactoring pushUpField()
public PushUpMethodRefactoring pushUpMethod()
public PushUpAbstractMethodRefactoring pushUpAbstractMethod()
public PushDownMethodRefactoring pushDownMethod()
public MoveMethodRefactoring moveMethod()
public RenameMethodRefactoring renameMethod()
public RenameParameterRefactoring renameParameter()
public ExtractMethodRefactoring extractMethod()
protected void prepare()
public static void setSingleton(RefactoringFactory value)
value
- The new Singleton valuepublic static RefactoringFactory get()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |