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.LinkedDiGraphEdge<N,E>, LinkedDirectedGraph.LinkedDiGraphNode<N,E>
DiGraph.DiGraphEdge<N,E>, DiGraph.DiGraphNode<N,E>
Graph.GraphEdge<N,E>
GraphvizGraph.GraphvizEdge, GraphvizGraph.GraphvizNode
nodes
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, createNode, createWithoutAnnotations, disconnect, disconnectInDirection, getDirectedPredNodes, getDirectedPredNodes, getDirectedSuccNodes, getDirectedSuccNodes, getEdges, getEdges, getEdgesInDirection, getFirstEdge, getGraphvizEdges, getGraphvizNodes, getInEdges, getName, getNeighborNodes, getNode, getNodeCount, getNodeDegree, getNodes, getOutEdges, isConnectedInDirection, isConnectedInDirection, isConnectedInDirection, isDirected, newSubGraph
isConnected, isConnected
clearEdgeAnnotations, clearNodeAnnotations, connectIfNotFound, getWeight, hasNode, popEdgeAnnotations, popNodeAnnotations, pushEdgeAnnotations, pushNodeAnnotations
public 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.Object
Copyright © 2009-2020 Google. All Rights Reserved.