public class PegCallGraph extends java.lang.Object implements DirectedGraph
Constructor and Description |
---|
PegCallGraph(CallGraph cg) |
Modifier and Type | Method and Description |
---|---|
java.util.Set |
getClinitMethods() |
java.util.List |
getHeads()
Returns a list of entry points for this graph.
|
java.util.List |
getPredsOf(java.lang.Object s)
Returns a list of predecessors for the given node in the graph.
|
java.util.List |
getSuccsOf(java.lang.Object s)
Returns a list of successors for the given node in the graph.
|
java.util.List |
getTails()
Returns a list of exit points for this graph.
|
java.util.List |
getTrimSuccsOf(java.lang.Object s) |
java.util.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() |
public PegCallGraph(CallGraph cg)
protected void testChain()
public java.util.Set getClinitMethods()
public void trim()
public java.util.List getHeads()
DirectedGraph
getHeads
in interface DirectedGraph
public java.util.List getTails()
DirectedGraph
getTails
in interface DirectedGraph
public java.util.List getTrimSuccsOf(java.lang.Object s)
public java.util.List getSuccsOf(java.lang.Object s)
DirectedGraph
getSuccsOf
in interface DirectedGraph
public java.util.List getPredsOf(java.lang.Object s)
DirectedGraph
getPredsOf
in interface DirectedGraph
public java.util.Iterator iterator()
DirectedGraph
iterator
in interface java.lang.Iterable
iterator
in interface DirectedGraph
public int size()
DirectedGraph
size
in interface DirectedGraph
protected void testMethodToSucc()
protected void testMethodToPred()