soot.jimple.toolkits.invoke
Class SiteInliner

java.lang.Object
  extended by soot.jimple.toolkits.invoke.SiteInliner

public class SiteInliner
extends Object

Provides methods to inline a given invoke site.


Constructor Summary
SiteInliner()
           
 
Method Summary
 String getDefaultOptions()
           
static void inlineSite(SootMethod inlinee, Stmt toInline, SootMethod container)
          Inlines the method inlinee into the container at the point toInline.
static List inlineSite(SootMethod inlinee, Stmt toInline, SootMethod container, Map options)
          Inlines the given site.
static void inlineSites(List sites)
           
static void inlineSites(List sites, Map options)
          Iterates over a list of sites, inlining them in order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteInliner

public SiteInliner()
Method Detail

getDefaultOptions

public String getDefaultOptions()

inlineSites

public static void inlineSites(List sites)

inlineSites

public static void inlineSites(List sites,
                               Map 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 void inlineSite(SootMethod inlinee,
                              Stmt toInline,
                              SootMethod container)
Inlines the method inlinee into the container at the point toInline.


inlineSite

public static List inlineSite(SootMethod inlinee,
                              Stmt toInline,
                              SootMethod container,
                              Map 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.