Package javassist.bytecode.analysis
Class FramePrinter
- java.lang.Object
-
- javassist.bytecode.analysis.FramePrinter
-
public final class FramePrinter extends java.lang.ObjectA utility class for printing a merged view of the frame state and the instructions of a method.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.PrintStreamstream
-
Constructor Summary
Constructors Constructor Description FramePrinter(java.io.PrintStream stream)Constructs a bytecode printer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddSpacing(int count)private java.lang.StringgetMethodString(CtMethod method)voidprint(CtClass clazz)Prints all the methods declared in the given class.static voidprint(CtClass clazz, java.io.PrintStream stream)Prints all the methods declared in the given class.voidprint(CtMethod method)Prints the instructions and the frame states of the given method.private voidprintLocals(Frame frame)private voidprintStack(Frame frame)
-
-
-
Method Detail
-
print
public static void print(CtClass clazz, java.io.PrintStream stream)
Prints all the methods declared in the given class.
-
print
public void print(CtClass clazz)
Prints all the methods declared in the given class.
-
getMethodString
private java.lang.String getMethodString(CtMethod method)
-
print
public void print(CtMethod method)
Prints the instructions and the frame states of the given method.
-
printStack
private void printStack(Frame frame)
-
printLocals
private void printLocals(Frame frame)
-
addSpacing
private void addSpacing(int count)
-
-