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.method;
10:
11: /**
12: * Description of the Class
13: *
14: *@author Chris Seguin
15: */
16: public class MethodRefactoringFactory {
17: /**
18: * Moves the method into the parent class
19: *
20: *@return Description of the Returned Value
21: */
22: public PushUpMethodRefactoring pushUpMethod() {
23: return new PushUpMethodRefactoring();
24: }
25:
26: /**
27: * Moves the method signature into the parent class
28: *
29: *@return Description of the Returned Value
30: */
31: public PushUpAbstractMethodRefactoring pushUpAbstractMethod() {
32: return new PushUpAbstractMethodRefactoring();
33: }
34:
35: /**
36: * Moves the method into a child class
37: *
38: *@return Description of the Returned Value
39: */
40: public PushDownMethodRefactoring pushDownMethod() {
41: return new PushDownMethodRefactoring();
42: }
43:
44: /**
45: * Moves the method into another class
46: *
47: *@return Description of the Returned Value
48: */
49: public MoveMethodRefactoring moveMethod() {
50: return new MoveMethodRefactoring();
51: }
52:
53: /**
54: * Moves the method into another class
55: *
56: *@return Description of the Returned Value
57: */
58: public RenameMethodRefactoring renameMethod() {
59: return new RenameMethodRefactoring();
60: }
61:
62: /**
63: * Extracts code from one method to create a new method
64: *
65: *@return Description of the Returned Value
66: */
67: public ExtractMethodRefactoring extractMethod() {
68: return new ExtractMethodRefactoring();
69: }
70:
71: /**
72: * Renames a parameter
73: *
74: *@return Description of the Returned Value
75: */
76: public RenameParameterRefactoring renameParameter() {
77: return new RenameParameterRefactoring();
78: }
79: }
|