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()
DirectedGraphgetHeads in interface DirectedGraphpublic java.util.List getTails()
DirectedGraphgetTails in interface DirectedGraphpublic java.util.List getTrimSuccsOf(java.lang.Object s)
public java.util.List getSuccsOf(java.lang.Object s)
DirectedGraphgetSuccsOf in interface DirectedGraphpublic java.util.List getPredsOf(java.lang.Object s)
DirectedGraphgetPredsOf in interface DirectedGraphpublic java.util.Iterator iterator()
DirectedGraphiterator in interface java.lang.Iterableiterator in interface DirectedGraphpublic int size()
DirectedGraphsize in interface DirectedGraphprotected void testMethodToSucc()
protected void testMethodToPred()