01 /* Generated By:JJTree: Do not edit this line. ASTBlockStatement.java */
02
03 package net.sourceforge.pmd.lang.java.ast;
04
05 public class ASTBlockStatement extends AbstractJavaNode {
06 public ASTBlockStatement(int id) {
07 super(id);
08 }
09
10 public ASTBlockStatement(JavaParser p, int id) {
11 super(p, id);
12 }
13
14
15 /**
16 * Accept the visitor. *
17 */
18 public Object jjtAccept(JavaParserVisitor visitor, Object data) {
19 return visitor.visit(this, data);
20 }
21
22 /**
23 * Tells if this BlockStatement is an allocation statement.
24 * This is done by
25 *
26 * @return the result of containsDescendantOfType(ASTAllocationExpression.class)
27 */
28 public final boolean isAllocation() {
29 return hasDescendantOfType(ASTAllocationExpression.class);
30 }
31 }
|