public class DirectedCallGraph extends Object implements DirectedGraph<SootMethod>
Modifier and Type | Field and Description |
---|---|
protected List<SootMethod> |
heads |
protected Set<SootMethod> |
nodes |
protected Map<SootMethod,List<SootMethod>> |
pred |
protected int |
size |
protected Map<SootMethod,List<SootMethod>> |
succ |
protected List<SootMethod> |
tails |
Constructor and Description |
---|
DirectedCallGraph(CallGraph cg,
SootMethodFilter filter,
Iterator<SootMethod> heads,
boolean verbose)
The constructor does all the work here.
|
Modifier and Type | Method and Description |
---|---|
List<SootMethod> |
getHeads()
You get a List of SootMethod.
|
List<SootMethod> |
getPredsOf(SootMethod s)
You get a List of SootMethod.
|
List<SootMethod> |
getSuccsOf(SootMethod s)
You get a List of SootMethod.
|
List<SootMethod> |
getTails()
You get a List of SootMethod.
|
Iterator<SootMethod> |
iterator()
You get an Iterator on SootMethod.
|
int |
size()
Returns the node count for this graph.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected Set<SootMethod> nodes
protected Map<SootMethod,List<SootMethod>> succ
protected Map<SootMethod,List<SootMethod>> pred
protected List<SootMethod> heads
protected List<SootMethod> tails
protected int size
public DirectedCallGraph(CallGraph cg, SootMethodFilter filter, Iterator<SootMethod> heads, boolean verbose)
cg
- filter
- heads
- is a List of SootMethodverbose
- public List<SootMethod> getHeads()
getHeads
in interface DirectedGraph<SootMethod>
public List<SootMethod> getTails()
getTails
in interface DirectedGraph<SootMethod>
public Iterator<SootMethod> iterator()
iterator
in interface Iterable<SootMethod>
iterator
in interface DirectedGraph<SootMethod>
public int size()
DirectedGraph
size
in interface DirectedGraph<SootMethod>
public List<SootMethod> getSuccsOf(SootMethod s)
getSuccsOf
in interface DirectedGraph<SootMethod>
s
- public List<SootMethod> getPredsOf(SootMethod s)
getPredsOf
in interface DirectedGraph<SootMethod>
s
- Copyright © 2020 Sable. All rights reserved.