Removed "bool AST::isInterface(std::string*)"

Test: links
Change-Id: I603831ed8aa8a8794a54d38ce0e1d0b6c68701cb
diff --git a/AST.cpp b/AST.cpp
index 4b10fb0..cecdabd 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -86,8 +86,8 @@
     return mPackage;
 }
 
-bool AST::isInterface(std::string *ifaceName) const {
-    return mRootScope->containsSingleInterface(ifaceName);
+bool AST::isInterface() const {
+    return mRootScope->getInterface() != nullptr;
 }
 
 bool AST::containsInterfaces() const {
@@ -530,8 +530,7 @@
 }
 
 bool AST::isJavaCompatible() const {
-    std::string ifaceName;
-    if (!AST::isInterface(&ifaceName)) {
+    if (!AST::isInterface()) {
         for (const auto *type : mRootScope->getSubTypes()) {
             if (!type->isJavaCompatible()) {
                 return false;
@@ -559,4 +558,10 @@
     return mRootScope->getInterface();
 }
 
+std::string AST::getBaseName() const {
+    const Interface *iface = mRootScope->getInterface();
+
+    return iface ? iface->getBaseName() : "types";
+}
+
 }  // namespace android;