javassist.bytecode.analysis
Class FramePrinter

java.lang.Object
  extended by javassist.bytecode.analysis.FramePrinter

public final class FramePrinter
extends java.lang.Object

A utility class for printing a merged view of the frame state and the instructions of a method.

Author:
Jason T. Greene

Constructor Summary
FramePrinter(java.io.PrintStream stream)
          Constructs a bytecode printer.
 
Method Summary
 void print(CtClass clazz)
          Prints all the methods declared in the given class.
static void print(CtClass clazz, java.io.PrintStream stream)
          Prints all the methods declared in the given class.
 void print(CtMethod method)
          Prints the instructions and the frame states of the given method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FramePrinter

public FramePrinter(java.io.PrintStream stream)
Constructs a bytecode printer.

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.


print

public void print(CtMethod method)
Prints the instructions and the frame states of the given method.



Copyright © 2011. All Rights Reserved.