N - The instruction type of the control flow graph.public class ControlFlowGraph<N> extends LinkedDirectedGraph<N,ControlFlowGraph.Branch>
| Modifier and Type | Class and Description |
|---|---|
static class |
ControlFlowGraph.AbstractCfgNodeTraversalCallback
Abstract callback to visit a control flow graph node without going into
subtrees of the node that are also represented by other
control flow graph nodes.
|
static class |
ControlFlowGraph.Branch
The edge object for the control flow graph.
|
LinkedDirectedGraph.LinkedDirectedGraphNode<N,E>DiGraph.DiGraphEdge<N,E>, DiGraph.DiGraphNode<N,E>Graph.GraphEdge<N,E>GraphvizGraph.GraphvizEdge, GraphvizGraph.GraphvizNodenodes| Modifier and Type | Method and Description |
|---|---|
DiGraph.DiGraphNode<N,ControlFlowGraph.Branch> |
getEntry()
Gets the entry point of the control flow graph.
|
DiGraph.DiGraphNode<N,ControlFlowGraph.Branch> |
getImplicitReturn()
Gets the implicit return node.
|
java.util.Comparator<DiGraph.DiGraphNode<N,ControlFlowGraph.Branch>> |
getOptionalNodeComparator(boolean isForward)
Gets a comparator for the nodes.
|
static boolean |
isEnteringNewCfgNode(Node n) |
boolean |
isImplicitReturn(DiGraph.DiGraphNode<N,ControlFlowGraph.Branch> node)
Checks whether node is the implicit return.
|
java.lang.String |
toString() |
connect, connect, connectIfNotConnectedInDirection, create, createDirectedGraphNode, createNode, createWithoutAnnotations, disconnect, disconnectInDirection, getDirectedGraphEdges, getDirectedGraphNode, getDirectedGraphNodes, getDirectedPredNodes, getDirectedPredNodes, getDirectedSuccNodes, getDirectedSuccNodes, getEdges, getEdges, getFirstEdge, getGraphvizEdges, getGraphvizNodes, getInEdges, getName, getNeighborNodes, getNode, getNodeCount, getNodeDegree, getNodes, getOutEdges, isConnectedInDirection, isConnectedInDirection, isConnectedInDirection, isDirected, newSubGraphisConnected, isConnectedclearEdgeAnnotations, clearNodeAnnotations, connectIfNotFound, getWeight, hasNode, popEdgeAnnotations, popNodeAnnotations, pushEdgeAnnotations, pushNodeAnnotationspublic DiGraph.DiGraphNode<N,ControlFlowGraph.Branch> getImplicitReturn()
public DiGraph.DiGraphNode<N,ControlFlowGraph.Branch> getEntry()
public boolean isImplicitReturn(DiGraph.DiGraphNode<N,ControlFlowGraph.Branch> node)
node - Node.public java.util.Comparator<DiGraph.DiGraphNode<N,ControlFlowGraph.Branch>> getOptionalNodeComparator(boolean isForward)
null. See getOptionalNodeComparator(boolean).isForward - Whether the comparator sorts the nodes in the direction of
the flow.public static boolean isEnteringNewCfgNode(Node n)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2019 Google. All Rights Reserved.