TypeDescriptor t=(TypeDescriptor)o;
if (t.type!=type)
return false;
- if ((type==CLASS)&&(t.class_desc!=class_desc))
+ if ((type==CLASS)&&(!t.getSymbol().equals(getSymbol())))
return false;
if (t.arraycount!=arraycount)
return false;
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)
}
public String toString() {
- if (type==CLASS)
+ if (type==CLASS) {
return name;
- else
+ } else
+ return decodeInt(type);
+ }
+
+ public String toPrettyString() {
+ if (type==CLASS) {
+ String str=name;
+ for(int i=0;i<arraycount;i++)
+ str+="[]";
+ return str;
+ } else
return decodeInt(type);
}