Class SiteInliner


  • public class SiteInliner
    extends Object
    Provides methods to inline a given invoke site.
    • Constructor Detail

      • SiteInliner

        public SiteInliner()
    • Method Detail

      • getDefaultOptions

        public String getDefaultOptions()
      • inlineSites

        public static void inlineSites​(List<List<Host>> sites)
        Iterates over a list of sites, inlining them in order. Each site is given as a 3-element list (inlinee, toInline, container).
      • inlineSites

        public static void inlineSites​(List<List<Host>> sites,
                                       Map<String,​String> options)
        Iterates over a list of sites, inlining them in order. Each site is given as a 3-element list (inlinee, toInline, container).
      • inlineSite

        public static List<Unit> inlineSite​(SootMethod inlinee,
                                            Stmt toInline,
                                            SootMethod container)
        Inlines the method inlinee into the container at the point toInline.
      • inlineSite

        public static List<Unit> inlineSite​(SootMethod inlinee,
                                            Stmt toInline,
                                            SootMethod container,
                                            Map<String,​String> options)
        Inlines the given site. Note that this method does not actually check if it's safe (with respect to access modifiers and special invokes) for it to be inlined. That functionality is handled by the InlinerSafetyManager.