public class dump extends ClassFileInput
dump
as an application:
java gnu.bytecode.dump foo.classThis will print out the constant pool, fields, methods, superclass, and implemented interfaces of class
foo
.
It is useful for printing out more detailed information
than javap
does.Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Reads a .class file, and prints out the contents to System.out.
|
static void |
process(java.io.InputStream in,
java.lang.String filename,
ClassTypeWriter out) |
static void |
process(java.io.InputStream in,
java.lang.String filename,
java.io.OutputStream out,
int flags) |
static void |
process(java.io.InputStream in,
java.lang.String filename,
java.io.Writer out,
int flags) |
Attribute |
readAttribute(java.lang.String name,
int length,
AttrContainer container) |
ConstantPool |
readConstants() |
static void |
usage(java.io.PrintStream err) |
readAttributes, readClassInfo, readClassType, readFields, readFormatVersion, readHeader, readMethods, skipAttribute
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
public ConstantPool readConstants() throws java.io.IOException
readConstants
in class ClassFileInput
java.io.IOException
public Attribute readAttribute(java.lang.String name, int length, AttrContainer container) throws java.io.IOException
readAttribute
in class ClassFileInput
java.io.IOException
public static void process(java.io.InputStream in, java.lang.String filename, java.io.OutputStream out, int flags) throws java.io.IOException
java.io.IOException
public static void process(java.io.InputStream in, java.lang.String filename, java.io.Writer out, int flags) throws java.io.IOException
java.io.IOException
public static void process(java.io.InputStream in, java.lang.String filename, ClassTypeWriter out) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
args
- One argument - the name of a .class file.public static void usage(java.io.PrintStream err)