// it probably should be in Context.java
return null;
}
+
+ public static Type fromArraySpec(int i) {
+ switch(i) {
+ case 4: return Type.BOOLEAN;
+ case 5: return Type.CHAR;
+ case 6: return Type.FLOAT;
+ case 7: return Type.DOUBLE;
+ case 8: return Type.BYTE;
+ case 9: return Type.SHORT;
+ case 10: return Type.INT;
+ case 11: return Type.LONG;
+ default: throw new IllegalStateException("invalid array type");
+ }
+ }
// Protected/Private //////////////////////////////////////////////////////////////////////////////
public abstract String toString();
public Type.Ref asRef() { return this; }
public boolean isRef() { return true; }
+ abstract String internalForm();
}
public static class Array extends Type.Ref {
public boolean isArray() { return true; }
public String toString() { return base.toString() + "[]"; }
public Type getElementType() { return base; }
+ String internalForm() { return getDescriptor(); }
}
public static class Class extends Type.Ref {