soot.jimple
Class DefaultStmtPrinter

java.lang.Object
  |
  +--soot.jimple.DefaultStmtPrinter
All Implemented Interfaces:
StmtPrinter

public class DefaultStmtPrinter
extends java.lang.Object
implements StmtPrinter

This class implements the printStatementsInBody method, which writes out a JimpleBody to a PrintWriter. Users may choose to replace this class with another StmtPrinter implementation, for instance to include analysis results. This should be done by setting the JimpleStmtPrinter in the Scene.


Method Summary
 void printDebugStatementsInBody(Body b, java.io.PrintWriter out, boolean isPrecise)
           
 void printStatementsInBody(Body body, java.io.PrintWriter out, boolean isPrecise, boolean isNumbered)
          Prints the given JimpleBody to the specified PrintWriter.
static DefaultStmtPrinter v()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

v

public static DefaultStmtPrinter v()

printStatementsInBody

public void printStatementsInBody(Body body,
                                  java.io.PrintWriter out,
                                  boolean isPrecise,
                                  boolean isNumbered)
Prints the given JimpleBody to the specified PrintWriter.
Specified by:
printStatementsInBody in interface StmtPrinter

printDebugStatementsInBody

public void printDebugStatementsInBody(Body b,
                                       java.io.PrintWriter out,
                                       boolean isPrecise)
Specified by:
printDebugStatementsInBody in interface StmtPrinter