public class DirectedCallGraph extends java.lang.Object implements DirectedGraph<SootMethod>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<SootMethod> |
heads |
protected java.util.Set<SootMethod> |
nodes |
protected java.util.Map<SootMethod,java.util.List<SootMethod>> |
pred |
protected int |
size |
protected java.util.Map<SootMethod,java.util.List<SootMethod>> |
succ |
protected java.util.List<SootMethod> |
tails |
| Constructor and Description |
|---|
DirectedCallGraph(CallGraph cg,
SootMethodFilter filter,
java.util.Iterator<SootMethod> heads,
boolean verbose)
The constructor does all the work here.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<SootMethod> |
getHeads()
You get a List of SootMethod.
|
java.util.List<SootMethod> |
getPredsOf(SootMethod s)
You get a List of SootMethod.
|
java.util.List<SootMethod> |
getSuccsOf(SootMethod s)
You get a List of SootMethod.
|
java.util.List<SootMethod> |
getTails()
You get a List of SootMethod.
|
java.util.Iterator<SootMethod> |
iterator()
You get an Iterator on SootMethod.
|
int |
size()
Returns the node count for this graph.
|
protected java.util.Set<SootMethod> nodes
protected java.util.Map<SootMethod,java.util.List<SootMethod>> succ
protected java.util.Map<SootMethod,java.util.List<SootMethod>> pred
protected java.util.List<SootMethod> heads
protected java.util.List<SootMethod> tails
protected int size
public DirectedCallGraph(CallGraph cg, SootMethodFilter filter, java.util.Iterator<SootMethod> heads, boolean verbose)
cg - filter - heads - is a List of SootMethodverbose - public java.util.List<SootMethod> getHeads()
getHeads in interface DirectedGraph<SootMethod>public java.util.List<SootMethod> getTails()
getTails in interface DirectedGraph<SootMethod>public java.util.Iterator<SootMethod> iterator()
iterator in interface java.lang.Iterable<SootMethod>iterator in interface DirectedGraph<SootMethod>public int size()
DirectedGraphsize in interface DirectedGraph<SootMethod>public java.util.List<SootMethod> getSuccsOf(SootMethod s)
getSuccsOf in interface DirectedGraph<SootMethod>s - public java.util.List<SootMethod> getPredsOf(SootMethod s)
getPredsOf in interface DirectedGraph<SootMethod>s -