soot
Class Printer

java.lang.Object
  extended by soot.Printer

public class Printer
extends Object

Prints out a class and all its methods.


Field Summary
static int ADD_JIMPLE_LN
           
static int USE_ABBREVIATIONS
           
 
Constructor Summary
Printer(Singletons.Global g)
           
 
Method Summary
 boolean addJimpleLn()
           
 void clearOption(int opt)
           
 int getJimpleLnNum()
           
 void incJimpleLnNum()
           
 void printTo(Body b, PrintWriter out)
          Prints out the method corresponding to b Body, (declaration and body), in the textual format corresponding to the IR used to encode b body.
 void printTo(SootClass cl, PrintWriter out)
           
 void setJimpleLnNum(int newVal)
           
 void setOption(int opt)
           
 boolean useAbbreviations()
           
static Printer v()
           
 void writeXXXDeprecated(SootClass cl, String outputDir)
          Writes the class out to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_ABBREVIATIONS

public static final int USE_ABBREVIATIONS
See Also:
Constant Field Values

ADD_JIMPLE_LN

public static final int ADD_JIMPLE_LN
See Also:
Constant Field Values
Constructor Detail

Printer

public Printer(Singletons.Global g)
Method Detail

v

public static Printer v()

useAbbreviations

public boolean useAbbreviations()

addJimpleLn

public boolean addJimpleLn()

setOption

public void setOption(int opt)

clearOption

public void clearOption(int opt)

getJimpleLnNum

public int getJimpleLnNum()

setJimpleLnNum

public void setJimpleLnNum(int newVal)

incJimpleLnNum

public void incJimpleLnNum()

printTo

public void printTo(SootClass cl,
                    PrintWriter out)

writeXXXDeprecated

public void writeXXXDeprecated(SootClass cl,
                               String outputDir)
Writes the class out to a file.


printTo

public void printTo(Body b,
                    PrintWriter out)
Prints out the method corresponding to b Body, (declaration and body), in the textual format corresponding to the IR used to encode b body.

Parameters:
out - a PrintWriter instance to print to.