return p == -1 ? descriptor.substring(1,descriptor.length()-1) : descriptor.substring(p+1,descriptor.length()-1);
}
private static String _initHelper(String s) {
- if (!s.startsWith("L") || !s.endsWith(";")) s = "L" + s.replace('.', '/') + ";";
+ if (!s.startsWith("L") || !s.endsWith(";")) throw new Error("invalid");
return s;
}
String[] components() {
return a;
}
+ public Type.Class.Body getBody(Context cx) { return cx.resolve(this.getName()); }
public abstract class Body extends HasAttributes {
public abstract Type.Class.Method.Body[] methods();
public abstract Type.Class.Field.Body addField(Type.Class.Field field, int flags);