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