Class FramePrinter

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

public final class FramePrinter extends Object
A utility class for printing a merged view of the frame state and the instructions of a method.
  • Field Details

  • Constructor Details

    • FramePrinter

      public FramePrinter(PrintStream stream)
      Constructs a bytecode printer.
  • Method Details

    • print

      public static void print(CtClass clazz, 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 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)