01: /* Generated By:JJTree: Do not edit this line. ASTConstructorDeclaration.java */
02:
03: package net.sourceforge.pmd.ast;
04:
05: public class ASTConstructorDeclaration extends AccessNode {
06: public ASTConstructorDeclaration(int id) {
07: super (id);
08: }
09:
10: public ASTConstructorDeclaration(JavaParser p, int id) {
11: super (p, id);
12: }
13:
14: public ASTFormalParameters getParameters() {
15: return (ASTFormalParameters) (jjtGetChild(0) instanceof ASTFormalParameters ? jjtGetChild(0)
16: : jjtGetChild(1));
17: }
18:
19: public int getParameterCount() {
20: return getParameters().getParameterCount();
21: }
22:
23: /**
24: * Accept the visitor. *
25: */
26: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
27: return visitor.visit(this , data);
28: }
29:
30: private boolean containsComment;
31:
32: public boolean containsComment() {
33: return this .containsComment;
34: }
35:
36: public void setContainsComment() {
37: this .containsComment = true;
38: }
39:
40: public void dump(String prefix) {
41: System.out.println(collectDumpedModifiers(prefix));
42: dumpChildren(prefix);
43: }
44:
45: }
|