KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > pmd > ast > ASTConstructorDeclaration


1 /* Generated By:JJTree: Do not edit this line. ASTConstructorDeclaration.java */
2
3 package net.sourceforge.pmd.ast;
4
5 public class ASTConstructorDeclaration extends AccessNode {
6     public ASTConstructorDeclaration(int id) {
7         super(id);
8     }
9
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):jjtGetChild(1));
16     }
17
18     public int getParameterCount() {
19         return getParameters().getParameterCount();
20     }
21
22
23     /**
24      * Accept the visitor. *
25      */

26     public Object JavaDoc jjtAccept(JavaParserVisitor visitor, Object JavaDoc 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 JavaDoc prefix) {
41         System.out.println(collectDumpedModifiers(prefix));
42         dumpChildren(prefix);
43     }
44
45 }
46
Popular Tags