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;
10:
11: import net.sourceforge.jrefactory.ast.SimpleNode;
12: import net.sourceforge.jrefactory.ast.ModifierHolder;
13:
14: /**
15: * This is the base class for any algorithm that updates the syntax tree.
16: * Each of these objects contains one update to a syntax tree.
17: *
18: *@author Chris Seguin
19: *@created October 23, 1999
20: */
21: public abstract class TransformAST {
22: /**
23: * Update the syntax tree
24: *
25: *@param root the root of the syntax tree
26: */
27: public abstract void update(SimpleNode root);
28:
29: /**
30: * Sets up the modifiers
31: *
32: *@param source the source holder
33: *@param dest the destination holder
34: */
35: protected void copyModifiers(ModifierHolder source,
36: ModifierHolder dest) {
37: dest.copyModifiers(source);
38: }
39: }
|