01: /*
02: * Author: Chris Seguin
03: *
04: * This software has been developed under the copyleft
05: * rules of the GNU General Public License. Please
06: * consult the GNU General Public License for more
07: * details about use and distribution of this software.
08: */
09: package org.acm.seguin.refactor.type;
10:
11: /**
12: * Factory for the type refactorings
13: *
14: *@author Chris Seguin
15: */
16: public class TypeRefactoringFactory {
17: /**
18: * Adds a feature to the Child attribute of the TypeRefactoringFactory
19: * object
20: *
21: *@return Description of the Returned Value
22: */
23: public AddChildRefactoring addChild() {
24: return new AddChildRefactoring();
25: }
26:
27: /**
28: * Adds a feature to the Parent attribute of the TypeRefactoringFactory
29: * object
30: *
31: *@return Description of the Returned Value
32: */
33: public AddAbstractParent addParent() {
34: return new AddAbstractParent();
35: }
36:
37: /**
38: * Description of the Method
39: *
40: *@return Description of the Returned Value
41: */
42: public MoveClass moveClass() {
43: return new MoveClass();
44: }
45:
46: /**
47: * Description of the Method
48: *
49: *@return Description of the Returned Value
50: */
51: public RenameClassRefactoring renameClass() {
52: return new RenameClassRefactoring();
53: }
54:
55: /**
56: * Description of the Method
57: *
58: *@return Description of the Returned Value
59: */
60: public RemoveEmptyClassRefactoring removeEmptyClass() {
61: return new RemoveEmptyClassRefactoring();
62: }
63:
64: /**
65: * Extracts the interface of a class into a new interface object
66: *
67: *@return Description of the Returned Value
68: */
69: public ExtractInterfaceRefactoring extractInterface() {
70: return new ExtractInterfaceRefactoring();
71: }
72: }
|