final int flags;
private final Vector fields = new Vector();
- private final Vector methods = new Vector();
+ public final Vector methods = new Vector();
private final AttrGen attributes;
private static final int NO_CODE = -1;
- private final Type.Class.Method method;
+ public final Type.Class.Method method;
private final int flags;
private final ClassFile.AttrGen attrs;
private final ClassFile.AttrGen codeAttrs;
o.getDescriptor().equals(getDescriptor());
}
public int hashCode() { return getDeclaringClass().hashCode() ^ name.hashCode() ^ getDescriptor().hashCode(); }
+ public String toString() { return debugToString(); }
+ public abstract String debugToString();
}
public class Field extends Member {
private Field(String name, Type t) { super(name); this.type = t; }
public String getDescriptor() { return name; }
public Type getType() { return type; }
+ public String debugToString() { return getDeclaringClass()+"."+name+"["+type+"]"; }
}
public class Method extends Member {