coins.opt
クラス ReplaceInfo

java.lang.Object
  |
  +--coins.opt.ReplaceInfo

class ReplaceInfo
extends java.lang.Object

title: ReplaceInfo class.

description: Information of global variable for replace.


入れ子クラスの概要
(パッケージプライベート)  class ReplaceInfo.Item
          title: class Item description: Information of global variable whitch is related by key of Map structure.
 
フィールドの概要
protected  java.util.Map fReplaceMap
          Map of global var to replace information.
 
コンストラクタの概要
ReplaceInfo()
          Construct this object.
 
メソッドの概要
 void add(VarNode lGlobalVarNode)
          Add replace var node.
 void clear()
          Clear this object.
protected  ReplaceInfo.Item getItem(Sym pSym)
          get Item object related by pSym.
 Var getReplacedVar(Sym pSym)
          Get replaced temporal variable, whitch is related by pSym.
 java.util.List getReplaceNodeList(Sym pSym)
          Get List of VarNode to replace, whitch is related by pSym.
 java.util.Set getReplaceSymSet(int pCount)
          Get Set of Sym larger than pCount.
 void remove(Sym pSym)
          Remove var of replacing.
 boolean removeReplacedNode(VarNode pVarNode)
          Remove Gloval temporal var from replaced node list whitch is related by pSym.
 boolean setReplacedVar(Sym pSym, Var pVar)
          Set replaced temporal variable, whitch is related by pSym.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

fReplaceMap

protected java.util.Map fReplaceMap
Map of global var to replace information. this map is formed as following. key : global var element: Item object, whitch is inner class of this.

コンストラクタの詳細

ReplaceInfo

public ReplaceInfo()
Construct this object.

メソッドの詳細

clear

public void clear()
Clear this object.


getItem

protected ReplaceInfo.Item getItem(Sym pSym)
get Item object related by pSym.

パラメータ:
pSym - indicate to get related Item object. this may be global simple var sym.
戻り値:
Item object related by pSym.

add

public void add(VarNode lGlobalVarNode)
Add replace var node.

パラメータ:
lGlobalVarNode - var node of replacing.

remove

public void remove(Sym pSym)
Remove var of replacing.

パラメータ:
pSym - sym of removing.

getReplaceSymSet

public java.util.Set getReplaceSymSet(int pCount)
Get Set of Sym larger than pCount.

パラメータ:
pCount - use count for replace.
戻り値:
Set of Sym larger than pCount.

getReplaceNodeList

public java.util.List getReplaceNodeList(Sym pSym)
Get List of VarNode to replace, whitch is related by pSym.

パラメータ:
pSym - indicate to get related List of VarNode. It may be global simple var.
戻り値:
List of VarNode.

getReplacedVar

public Var getReplacedVar(Sym pSym)
Get replaced temporal variable, whitch is related by pSym.

パラメータ:
pSym - indicate to get related temporal variable. It may be global simple var.
戻り値:
Var sym whitch is tempral varialbe of replaced.

setReplacedVar

public boolean setReplacedVar(Sym pSym,
                              Var pVar)
Set replaced temporal variable, whitch is related by pSym.

パラメータ:
pSym - indicate to set related temporal variable. It may be global simple var.
pVar - temporal variable.
戻り値:
true if successed, false else.

removeReplacedNode

public boolean removeReplacedNode(VarNode pVarNode)
Remove Gloval temporal var from replaced node list whitch is related by pSym.

パラメータ:
pVarNode - Global temporal var whitch is replaced.
戻り値:
treu if remoded, false else.