ASTImportDeclaration extends AbstractJavaTypeNode { public boolean isImportOnDemand() { return isImportOnDemand; } @InternalApi @Deprecated  ASTImportDeclaration(int id); @InternalApi @Deprecated  ASTImportDeclaration(JavaParser p, int id); @InternalApi @Deprecated void setImportOnDemand(); boolean isImportOnDemand(); @InternalApi @Deprecated void setStatic(); boolean isStatic(); @Deprecated ASTName getImportedNameNode(); String getImportedName(); String getImportedSimpleName(); String getPackageName(); @Override Object jjtAccept(JavaParserVisitor visitor, Object data); @InternalApi @Deprecated void setPackage(Package packge); @Deprecated Package getPackage();  }
@Test public void testImportOnDemand() { List<ASTImportDeclaration> ops = java.getNodes(ASTImportDeclaration.class, TEST1); assertTrue(ops.get(0).isImportOnDemand()); }