Package soot

Class Printer


  • public class Printer
    extends Object
    Prints out a class and all its methods.
    • Method Detail

      • 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​(Body b,
                            PrintWriter out)
        Prints out the method corresponding to the Body, (declaration and body) in the textual format corresponding to the IR used to encode the Body.
        Parameters:
        b - the Body instance to print.
        out - a PrintWriter instance to print to.
      • setCustomClassSignaturePrinter

        public void setCustomClassSignaturePrinter​(Function<SootClass,​String> customPrinter)
      • setCustomMethodSignaturePrinter

        public void setCustomMethodSignaturePrinter​(Function<SootMethod,​String> customPrinter)