|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soot.jimple.toolkits.annotation.purity.DirectedCallGraph
public class DirectedCallGraph
Builds a DirectedGraph from a CallGraph and SootMethodFilter. This is used in AbstractInterproceduralAnalysis to construct a reverse pseudo topological order on which to iterate. You can specify a SootMethodFilter to trim the graph by cutting call edges strarting Methods filtered-out by the SootMethodFilter will not appear in the DirectedGraph!
Field Summary | |
---|---|
protected List |
heads
|
protected Set |
nodes
|
protected Map<Object,List> |
pred
|
protected int |
size
|
protected Map<Object,List> |
succ
|
protected List |
tails
|
Constructor Summary | |
---|---|
DirectedCallGraph(CallGraph cg,
SootMethodFilter filter,
Iterator heads,
boolean verbose)
The constructor does all the work here. |
Method Summary | |
---|---|
List |
getHeads()
You get a List of SootMethod. |
List |
getPredsOf(Object s)
You get a List of SootMethod. |
List |
getSuccsOf(Object s)
You get a List of SootMethod. |
List |
getTails()
You get a List of SootMethod. |
Iterator |
iterator()
You get an Iterator on SootMethod. |
int |
size()
Returns the node count for this graph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Set nodes
protected Map<Object,List> succ
protected Map<Object,List> pred
protected List heads
protected List tails
protected int size
Constructor Detail |
---|
public DirectedCallGraph(CallGraph cg, SootMethodFilter filter, Iterator heads, boolean verbose)
heads
- is a List of SootMethodMethod Detail |
---|
public List getHeads()
getHeads
in interface DirectedGraph
public List getTails()
getTails
in interface DirectedGraph
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface DirectedGraph
public int size()
DirectedGraph
size
in interface DirectedGraph
public List getSuccsOf(Object s)
getSuccsOf
in interface DirectedGraph
public List getPredsOf(Object s)
getPredsOf
in interface DirectedGraph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |