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.JavaParserVisitor;
13:
14: /**
15: * Description of the Class
16: *
17: * @author Mike Atkinson
18: * @since jRefactory 2.9.4, created November 09, 2003
19: */
20: public class ASTAnnotationTypeDeclaration extends AccessNode {
21: private String name = "";
22:
23: /**
24: * Constructor for the ASTAnnotationTypeDeclaration node.
25: *
26: * @param identifier The id of this node (JJTANNOTATIONTYPEDECLARATION).
27: */
28: public ASTAnnotationTypeDeclaration(int identifier) {
29: super (identifier);
30: }
31:
32: /**
33: * Constructor for the ASTAnnotationTypeDeclaration node.
34: *
35: * @param parser The JavaParser that created this ASTAnnotationTypeDeclaration node.
36: * @param identifier The id of this node (JJTANNOTATIONTYPEDECLARATION).
37: */
38: public ASTAnnotationTypeDeclaration(JavaParser parser,
39: int identifier) {
40: super (parser, identifier);
41: }
42:
43: /**
44: * Accept the visitor. *
45: *
46: * @param visitor An implementation of JavaParserVisitor that processes the ASTAnnotationTypeDeclaration node.
47: * @param data Some data being passed between the visitor methods.
48: * @return Usually the data parameter (possibly modified).
49: */
50: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
51: return visitor.visit(this , data);
52: }
53:
54: /**
55: * Set the annotation type's name
56: *
57: * @param newName the new name
58: */
59: public void setName(String newName) {
60: name = newName.intern();
61: }
62:
63: /**
64: * Get the annotation type's name
65: *
66: * @return the name
67: */
68: public String getName() {
69: return name;
70: }
71:
72: }
|