net.sourceforge.pmd.ast

Class ASTBlockStatement

public class ASTBlockStatement extends SimpleJavaNode

Constructor Summary
ASTBlockStatement(int id)
ASTBlockStatement(JavaParser p, int id)
Method Summary
booleanisAllocation()
Tells if this BlockStatement is an allocation statement.
ObjectjjtAccept(JavaParserVisitor visitor, Object data)
Accept the visitor.

Constructor Detail

ASTBlockStatement

public ASTBlockStatement(int id)

ASTBlockStatement

public ASTBlockStatement(JavaParser p, int id)

Method Detail

isAllocation

public final boolean isAllocation()
Tells if this BlockStatement is an allocation statement. This is done by

Returns: the result of !findChildrenOfType(ASTAllocationExpression.class).isEmpty()

jjtAccept

public Object jjtAccept(JavaParserVisitor visitor, Object data)
Accept the visitor. *