soot.jimple.toolkits.thread.mhp.pegcallgraph
Class PegCallGraph

java.lang.Object
  extended by soot.jimple.toolkits.thread.mhp.pegcallgraph.PegCallGraph
All Implemented Interfaces:
Iterable, DirectedGraph

public class PegCallGraph
extends Object
implements DirectedGraph


Constructor Summary
PegCallGraph(CallGraph cg)
           
 
Method Summary
 Set getClinitMethods()
           
 List getHeads()
          Returns a list of entry points for this graph.
 List getPredsOf(Object s)
          Returns a list of predecessors for the given node in the graph.
 List getSuccsOf(Object s)
          Returns a list of successors for the given node in the graph.
 List getTails()
          Returns a list of exit points for this graph.
 List getTrimSuccsOf(Object s)
           
 Iterator iterator()
          Returns an iterator for the nodes in this graph.
 int size()
          Returns the node count for this graph.
protected  void testChain()
           
protected  void testMethodToPred()
           
protected  void testMethodToSucc()
           
 void trim()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PegCallGraph

public PegCallGraph(CallGraph cg)
Method Detail

testChain

protected void testChain()

getClinitMethods

public Set getClinitMethods()

trim

public void trim()

getHeads

public List getHeads()
Description copied from interface: DirectedGraph
Returns a list of entry points for this graph.

Specified by:
getHeads in interface DirectedGraph

getTails

public List getTails()
Description copied from interface: DirectedGraph
Returns a list of exit points for this graph.

Specified by:
getTails in interface DirectedGraph

getTrimSuccsOf

public List getTrimSuccsOf(Object s)

getSuccsOf

public List getSuccsOf(Object s)
Description copied from interface: DirectedGraph
Returns a list of successors for the given node in the graph.

Specified by:
getSuccsOf in interface DirectedGraph

getPredsOf

public List getPredsOf(Object s)
Description copied from interface: DirectedGraph
Returns a list of predecessors for the given node in the graph.

Specified by:
getPredsOf in interface DirectedGraph

iterator

public Iterator iterator()
Description copied from interface: DirectedGraph
Returns an iterator for the nodes in this graph. No specific ordering of the nodes is guaranteed.

Specified by:
iterator in interface Iterable
Specified by:
iterator in interface DirectedGraph

size

public int size()
Description copied from interface: DirectedGraph
Returns the node count for this graph.

Specified by:
size in interface DirectedGraph

testMethodToSucc

protected void testMethodToSucc()

testMethodToPred

protected void testMethodToPred()