sandmark.watermark.ct.trace
Class CallForest
java.lang.Object
|
+--sandmark.watermark.ct.trace.CallForest
- public class CallForest
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
annotationPoints
TracePoint[] annotationPoints
classHierarchy
ClassHierarchy classHierarchy
statistics
Stats statistics
props
java.util.Properties props
annotatorClass
java.lang.String annotatorClass
forest
java.util.Vector forest
root2Graph
java.util.Hashtable root2Graph
frame2node
java.util.Hashtable frame2node
frame2entry
java.util.Hashtable frame2entry
frame2exit
java.util.Hashtable frame2exit
frame2last
java.util.Hashtable frame2last
entry
Node entry
exit
Node exit
EDGE_VALUE
static final int EDGE_VALUE
- See Also:
- Constant Field Values
NODE_MARK_VALUE
static final int NODE_MARK_VALUE
- See Also:
- Constant Field Values
NODE_STEALTHY_VALUE
static final int NODE_STEALTHY_VALUE
- See Also:
- Constant Field Values
NODE_UNSTEALTHY_VALUE
static final int NODE_UNSTEALTHY_VALUE
- See Also:
- Constant Field Values
NODE_JAVA_VALUE
static final int NODE_JAVA_VALUE
- See Also:
- Constant Field Values
CallForest
public CallForest(TracePoint[] annotationPoints,
ClassHierarchy classHierarchy,
Stats stats,
java.util.Properties props)
newGraph
Graph newGraph(StackFrame root)
build
void build()
- Builds a information flow graph
isMarkNode
boolean isMarkNode(Graph graph,
Node node)
getFlowPath
public MethodID[] getFlowPath(StackFrame from,
MethodID to)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
view
public void view()
getForest
public java.util.Vector getForest()
size
public int size()
getCallGraph
public Graph getCallGraph(int i)
getMethod
public MethodID getMethod(Graph graph,
Node node)
getFrameID
public long getFrameID(Graph graph,
Node node)
getNodeKind
public int getNodeKind(Graph graph,
Node node)
getLocation
public ByteCodeLocation getLocation(Graph graph,
Node node)
getMarkValue
public java.lang.String getMarkValue(Graph graph,
Node node)
getNodeWeight
public int getNodeWeight(Graph graph,
Node node)
getEdgeWeight
public int getEdgeWeight(Graph graph,
Edge edge)
test1
static void test1()
test2
static void test2()
main
public static void main(java.lang.String[] args)