001: package method;
002:
003: /**
004: * Description of the Class
005: *
006: *@author Chris Seguin
007: */
008: public class MoveMethodSource {
009: /**
010: * Description of the Field
011: */
012: public int incr1;
013: private int increment;
014: private int incr2;
015:
016: /**
017: * Constructor for the MoveMethodSource object
018: */
019: public MoveMethodSource() {
020: incr1 = 5;
021: incr2 = 1;
022: increment = 3;
023: }
024:
025: /**
026: * Gets the Increment attribute of the MoveMethodSource object
027: *
028: *@return The Increment value
029: */
030: public int getIncrement() {
031: return increment;
032: }
033:
034: /**
035: * Description of the Method
036: *
037: *@param mmd Description of Parameter
038: */
039: public void methodOne(MoveMethodDest mmd) {
040: int value = mmd.getCode();
041: value += 2;
042: mmd.setCode(value);
043: }
044:
045: /**
046: * Description of the Method
047: *
048: *@param mmd Description of Parameter
049: */
050: public void methodTwo(MoveMethodDest mmd) {
051: int value = mmd.getCode();
052: value += incr1;
053: mmd.setCode(value);
054: }
055:
056: /**
057: * Description of the Method
058: *
059: *@param mmd Description of Parameter
060: */
061: public void methodThree(MoveMethodDest mmd) {
062: int value = mmd.getCode();
063: value += increment;
064: mmd.setCode(value);
065: }
066:
067: /**
068: * Description of the Method
069: *
070: *@param mmd Description of Parameter
071: */
072: public void methodFour(MoveMethodDest mmd) {
073: int value = mmd.getCode();
074: value += incr2;
075: mmd.setCode(value);
076: }
077:
078: /**
079: * Description of the Method
080: *
081: *@return Description of the Returned Value
082: */
083: public String publicMethod() {
084: return "hello";
085: }
086:
087: /**
088: * Description of the Method
089: *
090: *@param mmd Description of Parameter
091: */
092: public void methodFive(MoveMethodDest mmd) {
093: mmd.setTitle(publicMethod() + ": " + mmd.getCode());
094: }
095:
096: /**
097: * Description of the Method
098: *
099: *@param mmd Description of Parameter
100: */
101: public void methodSix(MoveMethodDest mmd) {
102: mmd.setTitle(protectedMethod() + ": " + mmd.getCode());
103: }
104:
105: /**
106: * Description of the Method
107: *
108: *@param mmd Description of Parameter
109: */
110: public void methodEight(OtherMethodDest mmd) {
111: mmd.setTitle(packageMethod() + ": " + mmd.getCode());
112: }
113:
114: /**
115: * Description of the Method
116: *
117: *@param mmd Description of Parameter
118: */
119: public void methodNine(MoveMethodDest mmd) {
120: mmd.setTitle(privateMethod() + ": " + mmd.getCode());
121: }
122:
123: /**
124: * Description of the Method
125: *
126: *@param mmd Description of Parameter
127: */
128: public void methodSeven(MoveMethodDest mmd) {
129: mmd.methodSeven(this );
130: }
131:
132: /**
133: * Description of the Method
134: *
135: *@return Description of the Returned Value
136: */
137: protected String protectedMethod() {
138: return "confidential";
139: }
140:
141: /**
142: * Description of the Method
143: *
144: *@return Description of the Returned Value
145: */
146: String packageMethod() {
147: return "secret";
148: }
149:
150: /**
151: * Description of the Method
152: *
153: *@return Description of the Returned Value
154: */
155: private String privateMethod() {
156: return "topSecret";
157: }
158: }
|