|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.graph.GraphEdge
org.jtool.jxplatform.graph.cfg.ControlFlow
An edge (control flow) of CFGs.
| Field Summary |
| Fields inherited from class org.jtool.jxplatform.graph.GraphEdge |
dst, sort, src |
| Fields inherited from interface org.jtool.jxplatform.graph.GraphEdgeSort |
antiDependence, CDs, DDs, deforderDependence, defuseDependence, fallControlDependence, fallThroughFlow, falseControlDependence, falseControlFlow, flows, outputDependence, parameterFlow, parameterIn, parameterOut, trueControlDependence, trueControlFlow |
| Constructor Summary | |
protected |
ControlFlow()
Creates a new, empty object. |
protected |
ControlFlow(CFGNode src,
CFGNode dst)
Creates a new edge. |
| Method Summary | |
boolean |
equals(GraphElement elem)
Tests if this edge equals to a given edge. |
boolean |
isFallThrough()
Tests if this edge is the fall-through control flow. |
boolean |
isFalse()
Tests if this edge is the false control flow. |
boolean |
isLoopBack()
Tests if this edge is the loopback control flow. |
boolean |
isParameter()
Tests if this edge is the parameter passing flow. |
boolean |
isTrue()
Tests if this edge is the true control flow. |
void |
print()
Displays information about this edge. |
void |
print(java.lang.StringBuffer buf)
Collects information about this edge for printing. |
void |
setFallThrough()
Sets as this edge is the fall-through control flow. |
void |
setFalse()
Sets as this edge is the false control flow. |
void |
setLoopBack(boolean bool)
Sets the flag of the loopback. |
void |
setParameter()
Sets as this edge is the parameter passing flow. |
void |
setTrue()
Sets as this edge is the true control flow. |
void |
write(java.lang.StringBuffer buf)
Collects information about this edge for writing an XML document. |
| Methods inherited from class org.jtool.jxplatform.graph.GraphEdge |
getDstNode, getSort, getSrcNode, setDstNode, setSort, setSrcNode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected ControlFlow()
protected ControlFlow(CFGNode src,
CFGNode dst)
src - A source node of this edge.dst - A destination node of this edge.| Method Detail |
public boolean equals(GraphElement elem)
equals in interface GraphElementequals in class GraphEdgeelem - A edge to be checked.
true if the edges are equal, otherwise false.public void setTrue()
public boolean isTrue()
true if this edge is the true control flow, otherwise false.public void setFalse()
public boolean isFalse()
true if this edge is the false control flow, otherwise false.public void setFallThrough()
public boolean isFallThrough()
true if this edge is the fall-through control flow, otherwise false.public void setParameter()
public boolean isParameter()
true if this edge is the parameter passing flow, otherwise false.public void setLoopBack(boolean bool)
bool - true if this edge is the loopback.public boolean isLoopBack()
true if this edge is the loopback control flow, otherwise false.public void print()
print in interface GraphElementprint in class GraphEdgepublic void print(java.lang.StringBuffer buf)
print in class GraphEdgebuf - The information about the edge.public void write(java.lang.StringBuffer buf)
write in class GraphEdgebuf - The information about the edge.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||