View Javadoc

    1   /* Generated By:JJTree: Do not edit this line. ASTConstructorDeclaration.java */
    2
    3   package net.sourceforge.pmd.lang.java.ast;
    4
    5   public class ASTConstructorDeclaration extends AbstractJavaAccessNode {
    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 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  }