01: /*
02: * Author: Mike Atkinson
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 net.sourceforge.jrefactory.ast;
10:
11: import net.sourceforge.jrefactory.parser.JavaParser;
12: import net.sourceforge.jrefactory.parser.JavaParserTreeConstants;
13: import net.sourceforge.jrefactory.parser.JavaParserVisitor;
14:
15: /**
16: * Declares a new type
17: *
18: * @author Mike Atkinson
19: * @since jRefactory 2.9.0, created October 16, 2003
20: */
21: public class ASTTypeDeclaration extends SimpleNode {
22: /**
23: * Constructor for the ASTTypeDeclaration node.
24: *
25: */
26: public ASTTypeDeclaration() {
27: super (JavaParserTreeConstants.JJTTYPEDECLARATION);
28: }
29:
30: /**
31: * Constructor for the ASTTypeDeclaration node.
32: *
33: * @param identifier The id of this node (JJTTYPEDECLARATION).
34: */
35: public ASTTypeDeclaration(int identifier) {
36: super (identifier);
37: }
38:
39: /**
40: * Constructor for the ASTTypeDeclaration node.
41: *
42: * @param parser The JavaParser that created this ASTTypeDeclaration node.
43: * @param identifier The id of this node (JJTTYPEDECLARATION).
44: */
45: public ASTTypeDeclaration(JavaParser parser, int identifier) {
46: super (parser, identifier);
47: }
48:
49: /**
50: * Accept the visitor.
51: *
52: * @param visitor An implementation of JavaParserVisitor that processes the ASTTypeDeclaration node.
53: * @param data Some data being passed between the visitor methods.
54: * @return Usually the data parameter (possibly modified).
55: */
56: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
57: return visitor.visit(this, data);
58: }
59: }
|