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: * Holds a nested interface
16: *
17: * @author Mike Atkinson
18: * @since jRefactory 2.9.0, created October 16, 2003
19: */
20: public class ASTNestedInterfaceDeclaration extends AccessNode {
21:
22: /**
23: * Constructor for the ASTNestedInterfaceDeclaration node.
24: *
25: * @param identifier The id of this node (JJTNESTEDINTERFACEDECLARATION).
26: */
27: public ASTNestedInterfaceDeclaration(int identifier) {
28: super (identifier);
29: }
30:
31: /**
32: * Constructor for the ASTNestedInterfaceDeclaration node.
33: *
34: * @param parser The JavaParser that created this ASTNestedInterfaceDeclaration node.
35: * @param identifier The id of this node (JJTNESTEDINTERFACEDECLARATION).
36: */
37: public ASTNestedInterfaceDeclaration(JavaParser parser,
38: int identifier) {
39: super (parser, identifier);
40: }
41:
42: /**
43: * Gets the unmodifedInterfaceDeclaration attribute of the ASTNestedInterfaceDeclaration node.
44: *
45: * @return The unmodifedInterfaceDeclaration value
46: */
47: public ASTUnmodifiedInterfaceDeclaration getUnmodifedInterfaceDeclaration() {
48: return (ASTUnmodifiedInterfaceDeclaration) jjtGetFirstChild();
49: }
50:
51: /**
52: * Accept the visitor.
53: *
54: * @param visitor An implementation of JavaParserVisitor that processes the ASTNestedInterfaceDeclaration node.
55: * @param data Some data being passed between the visitor methods.
56: * @return Usually the data parameter (possibly modified).
57: */
58: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
59: return visitor.visit(this, data);
60: }
61:
62: }
|