View Javadoc

    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 int getParameterCount() {
    15          return ((ASTFormalParameters) jjtGetChild(0)).getParameterCount();
    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      private boolean containsComment;
    27
    28      public boolean containsComment() {
    29          return this.containsComment;
    30      }
    31
    32      public void setContainsComment() {
    33          this.containsComment = true;
    34      }
    35
    36      public void dump(String prefix) {
    37          System.out.println(collectDumpedModifiers(prefix));
    38          dumpChildren(prefix);
    39      }
    40
    41  }