coins.opt
Class ReplaceInfo.Item

java.lang.Object
  extended bycoins.opt.ReplaceInfo.Item
Enclosing class:
ReplaceInfo

class ReplaceInfo.Item
extends java.lang.Object

title: class Item

description: Information of global variable whitch is related by key of Map structure. It has following contants.


Field Summary
protected  int fCount
           
protected  Var fReplacedVar
           
protected  java.util.List fReplaceNodeList
           
 
Constructor Summary
ReplaceInfo.Item()
          Construct this object.
 
Method Summary
 void add(VarNode pReplaceVarNode)
          Add using of VarNode, and this node may be replaced by temporal var, so add to list of replacenode.
 void clear()
          Clear this object.
 int getCount()
          Get use count.
 Var getReplacedVar()
          Get temporal var whitch replaced.
 int getReplaceNodeCount()
          Get count of list of VarNodes whitch replace.
 java.util.List getReplaceNodeList()
          Get list of VarNodes whitch replace.
 boolean removeReplacdNode(VarNode pReplacedNode)
          Remove VarNode from ReplaceNodeList, when it is replaced by temporal variable.
 void setReplacedVar(Var pVar)
          Set temporal var whitch replaced
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fCount

protected int fCount

fReplacedVar

protected Var fReplacedVar

fReplaceNodeList

protected java.util.List fReplaceNodeList
Constructor Detail

ReplaceInfo.Item

public ReplaceInfo.Item()
Construct this object.

Method Detail

clear

public void clear()
Clear this object.


getCount

public int getCount()
Get use count.

Returns:
use count.

getReplacedVar

public Var getReplacedVar()
Get temporal var whitch replaced.

Returns:
temporal var whitch replaced.

setReplacedVar

public void setReplacedVar(Var pVar)
Set temporal var whitch replaced

Parameters:
pVar - temporal var whitch replaced.

getReplaceNodeList

public java.util.List getReplaceNodeList()
Get list of VarNodes whitch replace.

Returns:
List of VarNodes whitch replace.

getReplaceNodeCount

public int getReplaceNodeCount()
Get count of list of VarNodes whitch replace.

Returns:
Count of list of VarNodes whitch replace.

add

public void add(VarNode pReplaceVarNode)
Add using of VarNode, and this node may be replaced by temporal var, so add to list of replacenode.

Parameters:
pReplaceVarNode - Var node whitch may be replaced by temporal var.

removeReplacdNode

public boolean removeReplacdNode(VarNode pReplacedNode)
Remove VarNode from ReplaceNodeList, when it is replaced by temporal variable.

Parameters:
pReplacedNode - Removed var node whitch is replaced.
Returns:
true if removed, false else.