This update:
[IRC.git] / Robust / src / IR / TypeDescriptor.java
index 04a717ed0161d78d669cf295a64186760c6f1b6c..06c7bdd56d591c6c24e34473cd438abb82f2986d 100644 (file)
@@ -39,6 +39,16 @@ public class TypeDescriptor extends Descriptor {
        return false;
     }
 
+    public boolean isString() {
+       if (type!=CLASS)
+           return false;
+       if (arraycount>0)
+           return false;
+       if (!getSymbol().equals(TypeUtil.StringClass))
+           return false;
+       return true;
+    }
+
     public int hashCode() {
        int hashcode=type^arraycount;
        if (type==CLASS)