|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCallGraph
abc.tm.weaving.weaver.tmanalysis.callgraph.AbstractedCallGraph
public class AbstractedCallGraph
A abstracted version of a call graph.
This call graph contains only those edges on paths to any method that is matched by the NodePredicate that is passed in.
| Field Summary | |
|---|---|
protected static int |
COMPUTING
Status flag used in the computation. |
protected CallGraph |
delegate
The original callgraph. |
protected static int |
FALSE
Status flag used in the computation. |
protected NodePredicate |
nodePredicate
The node predicate, which tells what nodes to retain. |
protected java.util.Map |
resultCache
A result cache. |
protected static int |
TRUE
Status flag used in the computation. |
| Constructor Summary | |
|---|---|
AbstractedCallGraph(CallGraph fullGraph,
NodePredicate nodePredicate)
Constructs an abstraction of the given call graph under the given NodePredicate. |
|
| Method Summary | |
|---|---|
protected int |
abstractPath(Edge currEdge)
Build the abstraction for a certain path in the graph. |
protected void |
addEdgeToThis(Edge edge)
Copies the edge correctly into "this". |
protected void |
performAbstraction()
This builds up the abstracted graph, storing the relevant edges in the field CallGraph#edges. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CallGraph delegate
protected NodePredicate nodePredicate
protected transient java.util.Map resultCache
protected static final int TRUE
protected static final int FALSE
protected static final int COMPUTING
| Constructor Detail |
|---|
public AbstractedCallGraph(CallGraph fullGraph,
NodePredicate nodePredicate)
NodePredicate.
fullGraph - the original call graphnodePredicate - a predicate telling what nodes to retain in the abstracted graph| Method Detail |
|---|
protected void performAbstraction()
CallGraph#edges.
protected int abstractPath(Edge currEdge)
currEdge - the edge pointing to the current nodeprotected void addEdgeToThis(Edge edge)
edge -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||