|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.graph.Graph
org.jtool.jxplatform.graph.pdg.PDG
An object storing information about a program dependence graph (PDG).
| Field Summary | |
protected PDGMethodEntry |
entry
An entry node of this PDG. |
| Fields inherited from class org.jtool.jxplatform.graph.Graph |
edges, nodes |
| Constructor Summary | |
protected |
PDG()
Creates a new, empty object. |
|
PDG(CFG cfg)
Creates the PDG for a CFG. |
| Method Summary | |
protected void |
add(Dependence edge)
Adds a given PDG edge to this graph. |
protected void |
add(PDGNode node)
Adds a given PDG node to this graph. |
PDGMethodEntry |
getEntryNode()
Returns the entry node of this PDG. |
PDGNode |
getNode(CFGNode node)
Return a PDG node which corresponds to a CFG node. |
PDGNode |
getNode(int id)
Returns a PDG node with a given identifier. |
void |
print()
Displays information about this PDG. |
void |
printCDG()
Displays information about control dependence graph (CDG) extracted from this PDG. |
void |
printCDs(java.lang.StringBuffer buf)
Collects information about control dependence edges of this graph for printing. |
void |
printDDG()
Displays information about data dependence graph (DDG) extracted from this PDG. |
void |
printDDs(java.lang.StringBuffer buf)
Collects information about data dependence edges of this graph for printing. |
protected void |
setEntryNode(PDGMethodEntry node)
Sets the entry node of this PDG. |
java.lang.String |
write()
Writes information about this CFG. |
void |
writeEdges(java.lang.StringBuffer buf)
Collects information about edges of this CFG for writing an XML document. |
void |
writeNodes(java.lang.StringBuffer buf)
Collects information about nodes of this CFG for writing an XML document. |
| Methods inherited from class org.jtool.jxplatform.graph.Graph |
add, add, clear, contains, contains, equals, getEdges, getNodes, printEdges, printNodes, remove, remove, setEdges, setNodes, setSrcDstNodes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected PDGMethodEntry entry
| Constructor Detail |
protected PDG()
public PDG(CFG cfg)
throws GraphException
cfg - A CFG of a method.
GraphException - if the creation of the PDG fails.| Method Detail |
protected void setEntryNode(PDGMethodEntry node)
node - A entry node of this PDG.public PDGMethodEntry getEntryNode()
public PDGNode getNode(CFGNode node)
node - A CFG node.
null if there is no corresponding node found.public PDGNode getNode(int id)
id - The identifier of a node.
null if there is no corresponding node found.protected void add(PDGNode node)
node - A node to be added.protected void add(Dependence edge)
edge - An edge to be added.public void print()
print in class Graphpublic void printCDG()
public void printDDG()
public void printCDs(java.lang.StringBuffer buf)
buf - The information about the edges.public void printDDs(java.lang.StringBuffer buf)
buf - The information about the edges.
public java.lang.String write()
throws GraphException
GraphException - the write of this CFG fails.public void writeNodes(java.lang.StringBuffer buf)
writeNodes in class Graphbuf - The information about the node.public void writeEdges(java.lang.StringBuffer buf)
writeEdges in class Graphbuf - The information about the node.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||