|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.graph.GraphNode
org.jtool.jxplatform.graph.pdg.PDGNode
org.jtool.jxplatform.graph.pdg.PDGStatement
A statement node of PDGs.
| Field Summary |
| Fields inherited from class org.jtool.jxplatform.graph.pdg.PDGNode |
cfgnode |
| Fields inherited from class org.jtool.jxplatform.graph.GraphNode |
id, nodeNum, sort |
| Fields inherited from interface org.jtool.jxplatform.graph.GraphNodeSort |
actualIn, actualOut, assignments, assignmentSt, branches, breakSt, callings, caseLabel, classEntry, classExit, constructorCall, constructorEntry, constructorExit, continueSt, defaultLabel, doSt, entries, exits, fieldDecl, formalIn, formalOut, forSt, ifSt, ignores, instanceCreation, interfaceEntry, interfaceExit, labelSt, localDecl, mergeSt, methodCall, methodEntry, methodExit, newSt, parameters, polymorphicCall, returnSt, switchSt, synchronizedSt, throwSt, trySt, whileSt |
| Constructor Summary | |
protected |
PDGStatement()
Creates a new, empty object. |
protected |
PDGStatement(CFGStatement node)
Creates a new node. |
| Method Summary | |
boolean |
definesVariable(JxVariable jv)
Tests if this statement defines a variable. |
JxVariable |
getDefinedVariable(java.lang.String name)
Returns a defined variable with a name at this statement. |
JxVariableList |
getDefinedVariables()
Returns variables defined at this statement. |
JxVariable |
getUsedVariable(java.lang.String name)
Returns a defined variable with a name at this statement. |
JxVariableList |
getUsedVariables()
Returns variables used at this statement. |
boolean |
isStatement()
Tests if this node indicates a statement node. |
void |
print(java.lang.StringBuffer buf)
Collects information about this statement for printing. |
boolean |
usesVariable(JxVariable jv)
Tests if this statement uses a variable. |
| Methods inherited from class org.jtool.jxplatform.graph.pdg.PDGNode |
getCFGNode, getDefId, getIncomingCDEdges, getIncomingDDEdges, getOutgoingCDEdges, getOutgoingDDEdges, isBranchSt, isDominated, isFalseDominated, isLoopSt, isTrueDominated, print, print, write |
| Methods inherited from class org.jtool.jxplatform.graph.GraphNode |
addIncomingEdge, addIncomingEdges, addOutgoingEdge, addOutgoingEdges, clear, clearId, clearIncomingEdges, clearOutgoingEdges, equals, getDstNodes, getId, getIncomingEdges, getOutgoingEdges, getSort, getSrcNodes, removeIncomingEdge, removeOutgoingEdge, setDstNodes, setIncomingEdges, setOutgoingEdges, setSort, setSrcNodes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected PDGStatement()
protected PDGStatement(CFGStatement node)
node - A CFG node correspoinding to this node.| Method Detail |
public boolean isStatement()
isStatement in class PDGNodetrue.public JxVariableList getDefinedVariables()
CFGStatement.getDefinedVariables()public JxVariableList getUsedVariables()
CFGStatement.getUsedVariables()public boolean definesVariable(JxVariable jv)
jv - A variable wrapper to be tested.
true if this statement defines the variable, otherwise false.CFGStatement.definesVariable(JxVariable)public boolean usesVariable(JxVariable jv)
jv - A variable wrapper to be tested.
true if this statement uses the variable, otherwise false.CFGStatement.usesVariable(JxVariable)public JxVariable getDefinedVariable(java.lang.String name)
name - The name of a variable to be retrieved.
null if there is no variable found.CFGStatement.getDefinedVariable(String)public JxVariable getUsedVariable(java.lang.String name)
name - The name of a variable to be retrieved.
null if there is no variable found.CFGStatement.getUsedVariable(String)public void print(java.lang.StringBuffer buf)
print in class GraphNodebuf - The information about the stetement.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||