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:
13: import net.sourceforge.jrefactory.parser.JavaParserVisitor;
14:
15: /**
16: * Stores a list of formal parameters
17: *
18: * @author Mike Atkinson
19: * @since jRefactory 2.9.0, created October 16, 2003
20: */
21: public class ASTFormalParameters extends SimpleNode {
22: /**
23: * Constructor for the ASTFormalParameters node.
24: *
25: * @param identifier The id of this node (JJTFORMALPARAMETERS).
26: */
27: public ASTFormalParameters(int identifier) {
28: super (identifier);
29: }
30:
31: /**
32: * Constructor for the ASTFormalParameters node.
33: *
34: * @param parser The JavaParser that created this ASTFormalParameters node.
35: * @param identifier The id of this node (JJTFORMALPARAMETERS).
36: */
37: public ASTFormalParameters(JavaParser parser, int identifier) {
38: super (parser, identifier);
39: }
40:
41: /**
42: * Gets the parameterCount attribute of the ASTFormalParameters node.
43: *
44: * @return The parameterCount value
45: */
46: public int getParameterCount() {
47: return jjtGetNumChildren();
48: }
49:
50: /**
51: * Accept the visitor.
52: *
53: * @param visitor An implementation of JavaParserVisitor that processes the ASTFormalParameters 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: }
|