Package soot.jimple.toolkits.invoke
Class SiteInliner
- java.lang.Object
-
- soot.jimple.toolkits.invoke.SiteInliner
-
public class SiteInliner extends Object
Provides methods to inline a given invoke site.
-
-
Constructor Summary
Constructors Constructor Description SiteInliner()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultOptions()static List<Unit>inlineSite(SootMethod inlinee, Stmt toInline, SootMethod container)Inlines the methodinlineeinto thecontainerat the pointtoInline.static List<Unit>inlineSite(SootMethod inlinee, Stmt toInline, SootMethod container, Map<String,String> options)Inlines the given site.static voidinlineSites(List<List<Host>> sites)Iterates over a list of sites, inlining them in order.static voidinlineSites(List<List<Host>> sites, Map<String,String> options)Iterates over a list of sites, inlining them in order.
-
-
-
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 methodinlineeinto thecontainerat the pointtoInline.
-
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.
-
-