|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soot.jimple.toolkits.invoke.InvokeGraph
A graph mapping invoke statements to their declaring and target methods. ClassHierarchyAnalysis is the default source of InvokeGraphs, although VTA and RTA can create or trim these graphs.
Field Summary | |
MethodCallGraph |
mcg
|
Constructor Summary | |
InvokeGraph()
|
Method Summary | |
void |
addSite(Stmt site,
SootMethod container)
|
boolean |
addTarget(Stmt site,
SootMethod target)
Add an InvokeGraph target to an Stmt site. |
soot.jimple.toolkits.invoke.CallGraphStats |
computeStats()
Computes call graph characteristics, and stores them in the data structure CallGraphStats . |
boolean |
containsSite(Stmt site)
Checks whether a site is included in the invoke graph. |
void |
copyTargets(Stmt roleModel,
Stmt imitator)
This method is to be called after the imitator has been addSite'd. |
java.util.Set |
getAllSites()
|
java.util.List |
getCallingSitesOf(SootMethod target)
Returns the callsites which potentially invoke target. |
SootMethod |
getDeclaringMethod(Stmt site)
Returns the method that contains site . |
java.util.HashSet |
getReachableMethods()
|
java.util.List |
getSitesOf(SootMethod container)
Returns the sites of container added via addSite. |
java.util.List |
getTargetsOf(SootMethod m)
Returns the list of targets of SootMethod |
java.util.List |
getTargetsOf(Stmt site)
|
java.util.List |
getTransitiveTargetsOf(SootMethod m)
Returns a list of SootMethod s reachable from m . |
MutableDirectedGraph |
newMethodGraph()
|
MutableDirectedGraph |
newMethodGraph(java.util.Collection methodSet)
|
int |
numOfMethods()
|
void |
refreshReachableMethods()
Rebuilds the call graph to include only reachable methods. |
void |
removeAllTargets(Stmt site)
|
void |
removeSite(Stmt site)
|
void |
removeTarget(Stmt site,
SootMethod target)
|
void |
setReachableMethods(java.util.HashSet methods)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public MethodCallGraph mcg
Constructor Detail |
public InvokeGraph()
Method Detail |
public java.util.Set getAllSites()
public void refreshReachableMethods()
public soot.jimple.toolkits.invoke.CallGraphStats computeStats()
CallGraphStats
.
public SootMethod getDeclaringMethod(Stmt site)
site
.
public java.util.List getSitesOf(SootMethod container)
public boolean containsSite(Stmt site)
public java.util.List getCallingSitesOf(SootMethod target)
public java.util.List getTargetsOf(SootMethod m)
public java.util.List getTransitiveTargetsOf(SootMethod m)
SootMethod
s reachable from m
.
public java.util.List getTargetsOf(Stmt site)
public void removeTarget(Stmt site, SootMethod target)
public void removeAllTargets(Stmt site)
public boolean addTarget(Stmt site, SootMethod target)
public void addSite(Stmt site, SootMethod container)
public void removeSite(Stmt site)
public void copyTargets(Stmt roleModel, Stmt imitator)
public MutableDirectedGraph newMethodGraph()
public MutableDirectedGraph newMethodGraph(java.util.Collection methodSet)
public java.util.HashSet getReachableMethods()
public void setReachableMethods(java.util.HashSet methods)
public int numOfMethods()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |