Validate upfront that an interface is compatible with our Java backend,

emit diagnostics if it is not. Also cleans up all other error messages to
clearly indicate an error condition.

Bug: 30876839
Change-Id: I18bcd723107ab93abcad38c976f3c38dda60a743
diff --git a/ArrayType.h b/ArrayType.h
index 1d8ec1f..a653e8b 100644
--- a/ArrayType.h
+++ b/ArrayType.h
@@ -44,6 +44,8 @@
 
     status_t emitVtsTypeDeclarations(Formatter &out) const override;
 
+    bool isJavaCompatible() const override;
+
 private:
     Type *mElementType;
     std::string mDimension;