| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
DataInputStreamgnu.bytecode.ClassFileInputgnu.bytecode.dumppublic class dumpextends ClassFileInputConstructor Summary | |
| |
Method Summary | |
static void |
|
void | |
Attribute |
|
ConstantPool | |
static void |
|
Methods inherited from class gnu.bytecode.ClassFileInput | |
readAttribute, readAttributes, readClassInfo, readClassType, readConstants, readFields, readHeader, readMethods, skipAttribute | |
public static void main(String[] args)
Reads a .class file, and prints out the contents to System.out. Very rudimentary - prints out the constant pool, and field and method names and types, but only minimal attributes (i.e. no dis-assembly yet).
- Parameters:
args- One argument - the name of a .class file.
public void printAttributes()
public Attribute readAttribute(String name, int length, AttrContainer container) throws IOException
- Overrides:
- readAttribute in interface ClassFileInput
public ConstantPool readConstants() throws IOException
- Overrides:
- readConstants in interface ClassFileInput
public static void usage()