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/AST.h b/AST.h
index da8f655..5fdfd88 100644
--- a/AST.h
+++ b/AST.h
@@ -7,7 +7,7 @@
 #include <string>
 #include <utils/KeyedVector.h>
 #include <utils/RefBase.h>
-#include <utils/Vector.h>
+#include <vector>
 
 #include "FQName.h"
 #include "Type.h"
@@ -113,7 +113,9 @@
 
     status_t emitTypeDeclarations(Formatter &out) const;
     status_t emitJavaTypeDeclarations(Formatter &out) const;
-    status_t emitVtsTypeDeclarations(Formatter &out, Vector<Type*> types) const;
+
+    status_t emitVtsTypeDeclarations(
+            Formatter &out, const std::vector<Type *> &types) const;
 
     DISALLOW_COPY_AND_ASSIGN(AST);
 };