public class ClassPrinter
extends java.lang.Object
In Unix I run it like this: java -cp ~/dev/shrike/shrike com.ibm.wala.shrikeBT.shrikeCT.tools.ClassPrinter test.jar This will print the contents of every class in the JAR file.
| Constructor and Description |
|---|
ClassPrinter(java.io.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(java.lang.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(java.io.PrintWriter w)
public void setPrintLineNumberInfo(boolean b)
public void setPrintConstantPool(boolean b)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic void doClass(ClassReader cr) throws InvalidClassFileException, Decoder.InvalidBytecodeException, java.io.IOException
java.lang.IllegalArgumentException - if cr is nullInvalidClassFileExceptionDecoder.InvalidBytecodeExceptionjava.io.IOException