org.jtool.jxplatform.graph.cfg
Class CFGParameter

java.lang.Object
  extended byorg.jtool.jxplatform.graph.GraphNode
      extended byorg.jtool.jxplatform.graph.cfg.CFGNode
          extended byorg.jtool.jxplatform.graph.cfg.CFGStatement
              extended byorg.jtool.jxplatform.graph.cfg.CFGParameter
All Implemented Interfaces:
GraphElement, GraphNodeSort

public class CFGParameter
extends CFGStatement

A parameter node of CFGs.

Author:
Katsuhsa Maruyama

Field Summary
 
Fields inherited from class org.jtool.jxplatform.graph.cfg.CFGStatement
defs, uses
 
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 CFGParameter()
          Creates a new, empty object.
protected CFGParameter(int sort, org.w3c.dom.Element elem)
          Creates a new node.
protected CFGParameter(int sort, org.w3c.dom.Element elem, int n)
          Creates a new node.
 
Method Summary
 JxVariable getDefinedVariable()
          Returns a variable defined at this parameter.
protected  int getOrdinal()
          Returns the ordinal number of this parameter.
 JxVariable getUsedVariable()
          Returns a variable used at this parameter.
 void print(java.lang.StringBuffer buf)
          Collects information about this statement for printing.
protected  void setOrdinal(int n)
          Set the ordinal number of this parameter.
 
Methods inherited from class org.jtool.jxplatform.graph.cfg.CFGStatement
addDefinedVariable, addDefinedVariables, addDefinedVariables, addUsedVariable, addUsedVariables, addUsedVariables, clearDefinedVariable, clearUsedVariable, definesVariable, getDefinedVariable, getDefinedVariables, getUsedVariable, getUsedVariables, isStatement, printDefUse, removeDefinedVariable, removeUsedVariable, setDefinedVariable, setDefinedVariables, setUsedVariable, setUsedVariables, usesVariable
 
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, isMethodEntry, isParameterSt, isReturnSt, 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

CFGParameter

protected CFGParameter()
Creates a new, empty object.


CFGParameter

protected CFGParameter(int sort,
                       org.w3c.dom.Element elem)
Creates a new node.

Parameters:
sort - The sort of this node.
elem - A DOM element corresponding to this node.

CFGParameter

protected CFGParameter(int sort,
                       org.w3c.dom.Element elem,
                       int n)
Creates a new node.

Parameters:
sort - The sort of this node.
elem - A DOM element corresponding to this node.
n - The ordinal number of this parameter.
Method Detail

setOrdinal

protected void setOrdinal(int n)
Set the ordinal number of this parameter.

Parameters:
n - The ordinal number.

getOrdinal

protected int getOrdinal()
Returns the ordinal number of this parameter.

Returns:
The ordinal number.

getDefinedVariable

public JxVariable getDefinedVariable()
Returns a variable defined at this parameter.

Returns:
The variable defined at this parameter.

getUsedVariable

public JxVariable getUsedVariable()
Returns a variable used at this parameter.

Returns:
The variable used at this parameter.

print

public void print(java.lang.StringBuffer buf)
Collects information about this statement for printing.

Overrides:
print in class CFGStatement
Parameters:
buf - The information about the stetement.