1
2
3 package net.sourceforge.pmd.ast;
4
5 public class ASTMethodDeclarator extends SimpleNode {
6 public ASTMethodDeclarator(int id) {
7 super(id);
8 }
9
10 public ASTMethodDeclarator(JavaParser p, int id) {
11 super(p, id);
12 }
13
14 public int getParameterCount() {
15 return this.jjtGetChild(0).jjtGetNumChildren();
16 }
17
18
19 /***
20 * Accept the visitor. *
21 */
22 public Object jjtAccept(JavaParserVisitor visitor, Object data) {
23 return visitor.visit(this, data);
24 }
25
26 public void dump(String prefix) {
27 System.out.println(toString(prefix) + "(" + getImage() + ")");
28 dumpChildren(prefix);
29 }
30 }