Class FlowGraph
- java.lang.Object
-
- com.ibm.wala.cast.js.callgraph.fieldbased.flowgraph.FlowGraph
-
-
Constructor Summary
Constructors Constructor Description FlowGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEdge(Vertex from, Vertex to)Adds an edge from vertexfromto vertexto, adding the vertices to the graph if they are not in there yet.com.ibm.wala.ipa.callgraph.propagation.PointerAnalysis<ObjectVertex>getPointerAnalysis(com.ibm.wala.ipa.callgraph.CallGraph cg, com.ibm.wala.ipa.callgraph.IAnalysisCacheView cache, com.ibm.wala.util.MonitorUtil.IProgressMonitor monitor)com.ibm.wala.util.intset.OrdinalSet<FuncVertex>getReachingSet(Vertex dest, com.ibm.wala.util.MonitorUtil.IProgressMonitor monitor)Computes the set of vertices that may reachdestalong paths not containing anUnknownVertex.java.util.Iterator<Vertex>getSucc(Vertex v)VertexFactorygetVertexFactory()java.util.Iterator<Vertex>iterator()java.lang.StringtoJSON()Converts flow graph to a JSON representation.
-
-
-
Method Detail
-
getVertexFactory
public VertexFactory getVertexFactory()
-
addEdge
public void addEdge(Vertex from, Vertex to)
Adds an edge from vertexfromto vertexto, adding the vertices to the graph if they are not in there yet.
-
getReachingSet
public com.ibm.wala.util.intset.OrdinalSet<FuncVertex> getReachingSet(Vertex dest, com.ibm.wala.util.MonitorUtil.IProgressMonitor monitor) throws com.ibm.wala.util.CancelException
Computes the set of vertices that may reachdestalong paths not containing anUnknownVertex.- Throws:
com.ibm.wala.util.CancelException
-
iterator
public java.util.Iterator<Vertex> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<Vertex>
-
getPointerAnalysis
public com.ibm.wala.ipa.callgraph.propagation.PointerAnalysis<ObjectVertex> getPointerAnalysis(com.ibm.wala.ipa.callgraph.CallGraph cg, com.ibm.wala.ipa.callgraph.IAnalysisCacheView cache, com.ibm.wala.util.MonitorUtil.IProgressMonitor monitor) throws com.ibm.wala.util.CancelException
- Throws:
com.ibm.wala.util.CancelException
-
toJSON
public java.lang.String toJSON()
Converts flow graph to a JSON representation. Keys of the JSON object are vertices, with each vertex mapped to its successors. Vertices are serialized using theirVertex.toSourceLevelString(IAnalysisCacheView)method to include information about source-level variables whenever possible.
-
-