|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.graph.cfg.GetReachableNodes
Calculates reachable nodes on a CFG.
| Constructor Summary | |
GetReachableNodes(CFG cfg,
CFGNode fromNode,
CFGNode toNode)
Calculates reachable path between two CFG nodes and records nodes in the path. |
|
| Method Summary | |
boolean |
contains(CFGNode node)
Tests if the collection of the reachable nodes contains a node. |
GraphElementSet |
getBackwardReachableNode()
Returns the collection of nodes passed backward on a CFG. |
GraphElementSet |
getForwardReachableNode()
Returns the collection of nodes passed forward on a CFG. |
boolean |
isEmpty()
Tests if there is no reachable node. |
java.util.Iterator |
iterator()
Returns an iterator of the collection of the reachable nodes in proper sequence. |
void |
printNodes()
Displays information about the collected nodes for debugging. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GetReachableNodes(CFG cfg,
CFGNode fromNode,
CFGNode toNode)
cfg - A CFG.fromNode - A start node of reachable path to be calculated.toNode - An end node of reachable path to be calculated.| Method Detail |
public GraphElementSet getForwardReachableNode()
public GraphElementSet getBackwardReachableNode()
public boolean contains(CFGNode node)
node - A CFG node to be tested.
true if the reachable nodes contains the specified node, otherwise false.public boolean isEmpty()
true if there is no reachable node, otherwise false.public java.util.Iterator iterator()
public void printNodes()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||