|
|||||||||||
| 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.cfg.CFGNode
org.jtool.jxplatform.graph.cfg.CFGMethodEntry
A method entry node of CFGs.
| Field Summary |
| Fields inherited from class org.jtool.jxplatform.graph.cfg.CFGNode |
defid, element |
| 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 |
CFGMethodEntry()
Creates a new, empty object. |
protected |
CFGMethodEntry(int sort,
org.w3c.dom.Element elem)
Creates a new node. |
| Method Summary | |
protected void |
addFormalIn(CFGParameter node)
Adds formal-in node. |
protected void |
addFormalOut(CFGParameter node)
Adds formal-out node. |
CFGParameter |
getFormalIn(int index)
Returns a parameter node at the position in the formal-in list of this method entry. |
java.util.ArrayList |
getFormalIns()
Returns formal-in nodes of the method starting from this method entry. |
CFGParameter |
getFormalOut(int index)
Returns a parameter node at the position in the formal-out list of this method entry. |
java.util.ArrayList |
getFormalOuts()
Returns formal-out nodes of the method starting from this method entry. |
int |
getNumOfParameters()
Returns the number of parameters. |
java.util.ArrayList |
getParameters()
Returns parameter nodes of the method starting from this method entry. |
boolean |
hasParameter()
Tests if this method entry has a parameter. |
boolean |
isMethodEntry()
Tests if this node indicates a method entry node. |
void |
print(java.lang.StringBuffer buf)
Collects information about this statement for printing. |
| Methods inherited from class org.jtool.jxplatform.graph.cfg.CFGNode |
equals, getDefId, getElem, getPredecessors, getPredecessorsNumber, getSuccessors, getSuccessorsNumber, hasDefVariable, hasUseVariable, isAssignmentSt, isBranch, isBranchSt, isBreakSt, isCallSt, isContinueSt, isDoSt, isEntrySt, isExitSt, isFieldSt, isFormalInSt, isFormalOutSt, isFormalSt, isForSt, isGeneralAssignmentSt, isGeneralStatement, isIfSt, isIgnoredSt, isJoin, isLabelSt, isLocalSt, isLoopSt, isMergeSt, isParameterSt, isReturnSt, isStatement, isSwitchLabel, isSwitchSt, isWhileSt, print, print, write |
| Methods inherited from class org.jtool.jxplatform.graph.GraphNode |
addIncomingEdge, addIncomingEdges, addOutgoingEdge, addOutgoingEdges, clear, clearId, clearIncomingEdges, clearOutgoingEdges, 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 CFGMethodEntry()
protected CFGMethodEntry(int sort,
org.w3c.dom.Element elem)
sort - The sort of this node.elem - A DOM element corresponding to this node.| Method Detail |
public boolean isMethodEntry()
isMethodEntry in class CFGNodetrue.protected void addFormalIn(CFGParameter node)
node - A formal-in node of CFGs.protected void addFormalOut(CFGParameter node)
node - A formal-out node of CFGs.public java.util.ArrayList getFormalIns()
public java.util.ArrayList getFormalOuts()
public java.util.ArrayList getParameters()
public int getNumOfParameters()
public boolean hasParameter()
true if this method entry has a parameter, otherwise false.public CFGParameter getFormalIn(int index)
index - The position where a parameter node is returned.
null if there is no parameter node found.public CFGParameter getFormalOut(int index)
index - The position where a parameter node is returned.
null if there is no parameter node found.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 | ||||||||||