soot.jimple.toolkits.callgraph
Class CallGraphBuilder

java.lang.Object
  extended by soot.jimple.toolkits.callgraph.CallGraphBuilder

public final class CallGraphBuilder
extends Object

Models the call graph.

Author:
Ondrej Lhotak

Constructor Summary
CallGraphBuilder()
          This constructor builds the incomplete hack call graph for the Dava ThrowFinder.
CallGraphBuilder(PointsToAnalysis pa)
          This constructor builds a complete call graph using the given PointsToAnalysis to resolve virtual calls.
 
Method Summary
 void build()
           
 CallGraph getCallGraph()
           
static ContextManager makeContextManager(CallGraph cg)
           
 ReachableMethods reachables()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallGraphBuilder

public CallGraphBuilder(PointsToAnalysis pa)
This constructor builds a complete call graph using the given PointsToAnalysis to resolve virtual calls.


CallGraphBuilder

public CallGraphBuilder()
This constructor builds the incomplete hack call graph for the Dava ThrowFinder. It uses all application class methods as entry points, and it ignores any calls by non-application class methods. Don't use this constructor if you need a real call graph.

Method Detail

getCallGraph

public CallGraph getCallGraph()

reachables

public ReachableMethods reachables()

makeContextManager

public static ContextManager makeContextManager(CallGraph cg)

build

public void build()