01: package org.acm.seguin.refactor.method;
02:
03: import net.sourceforge.jrefactory.ast.ModifierHolder;
04: import org.acm.seguin.summary.MethodSummary;
05:
06: /**
07: * Adds a concrete method to a class
08: *
09: *@author Chris Seguin
10: */
11: public class AddConcreteMethod extends AddNewMethod {
12: /**
13: * Constructor for the AddConcreteMethod object
14: *
15: *@param init Description of Parameter
16: */
17: public AddConcreteMethod(MethodSummary init) {
18: super (init);
19: }
20:
21: /**
22: * Sets up the modifiers
23: *
24: *@param source the source holder
25: *@param dest the destination holder
26: */
27: protected void copyModifiers(ModifierHolder source,
28: ModifierHolder dest) {
29: dest.copyModifiers(source);
30: dest.setAbstract(false);
31: }
32:
33: /**
34: * Determines if the method is abstract
35: *
36: *@return true if the method is abstract
37: */
38: protected boolean isAbstract() {
39: return false;
40: }
41: }
|