View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   /* Generated By:JJTree: Do not edit this line. ASTConstructorDeclaration.java */
5   
6   package net.sourceforge.pmd.lang.java.ast;
7   
8   public class ASTConstructorDeclaration extends AbstractJavaAccessNode {
9       public ASTConstructorDeclaration(int id) {
10          super(id);
11      }
12  
13      public ASTConstructorDeclaration(JavaParser p, int id) {
14          super(p, id);
15      }
16  
17      public ASTFormalParameters getParameters() {
18          return (ASTFormalParameters) (jjtGetChild(0) instanceof ASTFormalParameters?jjtGetChild(0):jjtGetChild(1));
19      }
20  
21      public int getParameterCount() {
22          return getParameters().getParameterCount();
23      }
24  
25  
26      /**
27       * Accept the visitor. *
28       */
29      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
30          return visitor.visit(this, data);
31      }
32  
33      private boolean containsComment;
34  
35      public boolean containsComment() {
36          return this.containsComment;
37      }
38  
39      public void setContainsComment() {
40          this.containsComment = true;
41      }
42  }