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. ASTBlockStatement.java */
5   
6   package net.sourceforge.pmd.lang.java.ast;
7   
8   public class ASTBlockStatement extends AbstractJavaNode {
9       public ASTBlockStatement(int id) {
10          super(id);
11      }
12  
13      public ASTBlockStatement(JavaParser p, int id) {
14          super(p, id);
15      }
16  
17  
18      /**
19       * Accept the visitor. *
20       */
21      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
22          return visitor.visit(this, data);
23      }
24  
25      /**
26       * Tells if this BlockStatement is an allocation statement.
27       * This is done by
28       *
29       * @return the result of containsDescendantOfType(ASTAllocationExpression.class)
30       */
31      public final boolean isAllocation() {
32          return hasDescendantOfType(ASTAllocationExpression.class);
33      }
34  }