ASTImportDeclaration extends AbstractJavaTypeNode { @Deprecated public ASTName getImportedNameNode() { return (ASTName) getChild(0); } @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 testGetImportedNameNode() { ASTImportDeclaration i = java.getNodes(ASTImportDeclaration.class, TEST2).get(0); assertEquals("foo.bar.Baz", i.getImportedName()); }