public final class CallGraphPruning extends Object
Constructor and Description |
---|
CallGraphPruning(CallGraph cg) |
Modifier and Type | Method and Description |
---|---|
Set<CGNode> |
findApplicationNodes()
Searches all nodes in the callgraph that correspond to a method of the application (and not the system library).
|
Set<CGNode> |
findApplicationNodes(int depth)
Searches all nodes in the callgraph that correspond to a method of the application (and not the system library).
|
Set<CGNode> |
findNodes(int depth,
PruningPolicy policy)
Searches all nodes in the callgraph according to the given pruning policy.
|
public CallGraphPruning(CallGraph cg)
public Set<CGNode> findApplicationNodes()
public Set<CGNode> findApplicationNodes(int depth)
depth
- The level at which non-returning library methods are cut off.public Set<CGNode> findNodes(int depth, PruningPolicy policy)
depth
- the level at which methods which do not comply to the given pruning policy are cut off.policy
- pruning policy which decides which branches are kept in the call graph