KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > pmd > ast > ASTBlockStatement


1 /* Generated By:JJTree: Do not edit this line. ASTBlockStatement.java */
2
3 package net.sourceforge.pmd.ast;
4
5 public class ASTBlockStatement extends SimpleJavaNode {
6     public ASTBlockStatement(int id) {
7         super(id);
8     }
9
10     public ASTBlockStatement(JavaParser p, int id) {
11         super(p, id);
12     }
13
14
15     /**
16      * Accept the visitor. *
17      */

18     public Object JavaDoc jjtAccept(JavaParserVisitor visitor, Object JavaDoc 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 !findChildrenOfType(ASTAllocationExpression.class).isEmpty()
27      */

28     public final boolean isAllocation() {
29         return !findChildrenOfType(ASTAllocationExpression.class).isEmpty();
30     }
31 }
32
Popular Tags