The hidl-gen Java backend now supports structures (NOT unions) and types.hal
files.
Bug: 30575790
Change-Id: I6461235a1c469ce1bdb279bfa3d531113c5788f9
diff --git a/AST.h b/AST.h
index ce7f31f..aa16056 100644
--- a/AST.h
+++ b/AST.h
@@ -56,7 +56,9 @@
void addImportedAST(AST *ast);
status_t generateCpp(const std::string &outputPath) const;
+
status_t generateJava(const std::string &outputPath) const;
+ status_t generateJavaTypes(const std::string &outputPath) const;
void getImportedPackages(std::set<FQName> *importSet) const;
@@ -76,6 +78,10 @@
// in this AST, this is a subset of those specified in import statements.
std::set<FQName> mImportedNames;
+ // Similar to mImportedNames, but all types references from "types.hal"
+ // are individually listed.
+ std::set<FQName> mImportedNamesForJava;
+
// A set of all ASTs we explicitly or implicitly (types.hal) import.
std::set<AST *> mImportedASTs;