public class ClassPrinter extends Object
Constructor and Description |
---|
ClassPrinter(PrintWriter w)
Get ready to print a class to the given output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
doClass(ClassReader cr)
Print a class.
|
static void |
main(String[] args) |
void |
setPrintConstantPool(boolean b)
Controls whether to print all the constant pool entries.
|
void |
setPrintLineNumberInfo(boolean b)
Controls whether to print line number information.
|
public ClassPrinter(PrintWriter w)
public void setPrintLineNumberInfo(boolean b)
public void setPrintConstantPool(boolean b)
public void doClass(ClassReader cr) throws InvalidClassFileException, Decoder.InvalidBytecodeException, IOException
IllegalArgumentException
- if cr is nullInvalidClassFileException
Decoder.InvalidBytecodeException
IOException