|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.shrikeBT.shrikeCT.tools.ClassPrinter
public class ClassPrinter
This class prints the contents of a class file. It's like an alternative to javap that shows more information. 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 Summary | |
|---|---|
ClassPrinter(java.io.PrintWriter w)
Get ready to print a class to the given output stream. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassPrinter(java.io.PrintWriter w)
| Method Detail |
|---|
public void setPrintLineNumberInfo(boolean b)
public void setPrintConstantPool(boolean b)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public void doClass(ClassReader cr)
throws InvalidClassFileException,
Decoder.InvalidBytecodeException,
java.io.IOException
java.lang.IllegalArgumentException - if cr is null
InvalidClassFileException
Decoder.InvalidBytecodeException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||