| 
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.string.flow.FlowGraph
public class FlowGraph
Flow graph. Nodes represent definitions (variables or expressions). Edges represent data flow.
| Constructor Summary | |
|---|---|
FlowGraph()
Constructs new empty flow graph.  | 
|
| Method Summary | |
|---|---|
 AssignmentNode | 
addAssignmentNode()
Adds new assignment node to this flow graph.  | 
 BinaryNode | 
addBinaryNode(BinaryOperation op)
Adds new binary operation node to this flow graph.  | 
 ConcatenationNode | 
addConcatenationNode()
Adds new concatenation node to this flow graph.  | 
 InitializationNode | 
addInitializationNode(Automaton reg)
Adds new initialization node to this flow graph.  | 
 UnaryNode | 
addUnaryNode(UnaryOperation op)
Adds new unary operation node to this flow graph.  | 
 List<Node> | 
getNodes()
Returns the (unmodifiable) collection of nodes in this graph.  | 
 int | 
getNumberOfEdges()
Returns number of edges in this graph.  | 
 int | 
getNumberOfNodes()
Returns number of nodes in this graph.  | 
 void | 
normalize()
See Simplifier.normalize(FlowGraph). | 
 void | 
removeNodes(Set<Node> removed)
Removes the given nodes from this graph.  | 
 Map<Node,Node> | 
simplify()
See Simplifier.simplify(FlowGraph). | 
 String | 
toDot()
See FlowGraph2Dot.toDot(FlowGraph). | 
 String | 
toDot(Collection<Node> hotspots)
See FlowGraph2Dot.toDot(FlowGraph,Collection). | 
 void | 
visitNodes(NodeVisitor v)
Visits all nodes with the given visitor.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public FlowGraph()
| Method Detail | 
|---|
public AssignmentNode addAssignmentNode()
public BinaryNode addBinaryNode(BinaryOperation op)
op - binary operation
public ConcatenationNode addConcatenationNode()
public InitializationNode addInitializationNode(Automaton reg)
reg - regular language representing initialization values
public UnaryNode addUnaryNode(UnaryOperation op)
op - unary operation
public List<Node> getNodes()
public int getNumberOfEdges()
public int getNumberOfNodes()
public void normalize()
Simplifier.normalize(FlowGraph).
public void removeNodes(Set<Node> removed)
public Map<Node,Node> simplify()
Simplifier.simplify(FlowGraph).
public String toDot()
FlowGraph2Dot.toDot(FlowGraph).
public String toDot(Collection<Node> hotspots)
FlowGraph2Dot.toDot(FlowGraph,Collection).
public void visitNodes(NodeVisitor v)
  | 
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||