Initial commit of Java backend to hidl-gen.
Change-Id: I38b62637df74d3e5daf702a8996502d0d5726033
diff --git a/VectorType.cpp b/VectorType.cpp
index fcfda4b..fc2360e 100644
--- a/VectorType.cpp
+++ b/VectorType.cpp
@@ -30,6 +30,14 @@
}
}
+std::string VectorType::getJavaType() const {
+ return mElementType->getJavaType() + "[]";
+}
+
+std::string VectorType::getJavaSuffix() const {
+ return mElementType->getJavaSuffix() + "Vector";
+}
+
void VectorType::emitReaderWriter(
Formatter &out,
const std::string &name,