ASTBlockStatement extends AbstractJavaNode { public final boolean isAllocation() { return hasDescendantOfType(ASTAllocationExpression.class); } @InternalApi @Deprecated  ASTBlockStatement(int id); @InternalApi @Deprecated  ASTBlockStatement(JavaParser p, int id); @Override Object jjtAccept(JavaParserVisitor visitor, Object data); final boolean isAllocation();  }
@Test public void testIsAllocation2() { ASTBlockStatement bs = new ASTBlockStatement(0); bs.jjtAddChild(new ASTAssertStatement(1), 0); assertFalse(bs.isAllocation()); }
@Test public void testIsAllocation() { ASTBlockStatement bs = new ASTBlockStatement(0); bs.jjtAddChild(new ASTAllocationExpression(1), 0); assertTrue(bs.isAllocation()); }