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/Type.cpp b/Type.cpp
index 59439c3..296aba8 100644
--- a/Type.cpp
+++ b/Type.cpp
@@ -263,5 +263,9 @@
     return emitVtsTypeDeclarations(out);
 }
 
+bool Type::isJavaCompatible() const {
+    return true;
+}
+
 }  // namespace android