Package soot
Class Printer
- java.lang.Object
-
- soot.Printer
-
public class Printer extends Object
Prints out a class and all its methods.
-
-
Field Summary
Fields Modifier and Type Field Description static intADD_JIMPLE_LNstatic intUSE_ABBREVIATIONS
-
Constructor Summary
Constructors Constructor Description Printer(Singletons.Global g)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddJimpleLn()voidclearOption(int opt)intgetJimpleLnNum()voidincJimpleLnNum()voidprintTo(Body b, PrintWriter out)voidprintTo(SootClass cl, PrintWriter out)voidsetCustomClassSignaturePrinter(Function<SootClass,String> customPrinter)voidsetCustomMethodSignaturePrinter(Function<SootMethod,String> customPrinter)voidsetCustomUnitPrinter(Function<Body,LabeledUnitPrinter> customUnitPrinter)voidsetJimpleLnNum(int newVal)voidsetOption(int opt)booleanuseAbbreviations()static Printerv()
-
-
-
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)
-
printTo
public void printTo(Body b, PrintWriter out)
Prints out the method corresponding to theBody, (declaration and body) in the textual format corresponding to the IR used to encode theBody.- Parameters:
b- the Body instance to print.out- a PrintWriter instance to print to.
-
setCustomUnitPrinter
public void setCustomUnitPrinter(Function<Body,LabeledUnitPrinter> customUnitPrinter)
-
setCustomClassSignaturePrinter
public void setCustomClassSignaturePrinter(Function<SootClass,String> customPrinter)
-
setCustomMethodSignaturePrinter
public void setCustomMethodSignaturePrinter(Function<SootMethod,String> customPrinter)
-
-