|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object | +--coins.ir.IrListImpl
class IrListImpl List of expressions, symbols, and others. LinkedList in java.util is wrapped so that it can be treated as IR node and IR methods can be applied. This class may print messages to System.out instead of using put of Message because hirRoot/lirRoot might be null.
| フィールドの概要 | |
protected HirAnnex |
fHirAnnex
|
protected int |
fOperator
|
protected IR |
fParent
|
HirRoot |
hirRoot
|
| インタフェース coins.ir.IR から継承したフィールド |
OP_CODE_NAME, OP_INF, OP_LIST, OP_PROG, OP_SUBP_DEF |
| コンストラクタの概要 | |
IrListImpl(HirRoot pHirRoot)
|
|
IrListImpl(HirRoot pHirRoot,
java.util.LinkedList pList)
IrList constructor foe HIR Wrap pList so that it can be treated as IR node. |
|
| メソッドの概要 | |
void |
add(int pInsertionPosition,
java.lang.Object pObjectToBeInserted)
|
void |
add(java.lang.Object pElement)
|
void |
addInf(java.lang.String pInfKindInterned,
java.lang.Object pInfObject)
addInf Add (attach) information pInfObject to this IR node. |
IR |
buildNode(int pOperator)
|
IR |
buildNode(int pOperator,
IR pSource1)
|
IR |
buildNode(int pOperator,
IR pSource1,
IR pSource2)
|
IR |
buildSymNode(Sym pSym)
|
void |
clear()
|
java.lang.Object |
clone()
|
boolean |
contains(java.lang.Object pObject)
|
java.lang.Object |
get(int pIndex)
|
IR |
getChild(int pNumber)
getChild |
IR |
getChild1()
getChild1 Get the first child of this node. |
IR |
getChild2()
getChild2 Get the second child of this node. |
int |
getChildCount()
getChildCount Get the number of children that may be attached to this node. |
IR |
getClone()
getClone |
java.lang.Object |
getFirst()
|
FlowAnalSym |
getFlowAnalSym()
|
java.lang.String |
getIndentSpace(int pIndent)
|
int |
getIndex()
getIndex Get the index number assigned to "this" node. |
java.lang.Object |
getInf(java.lang.String pInfKindInterned)
getInf Get the information of the kind pInfKindInterned. |
IrList |
getInfList()
getInfList Get the information list attached to this node. |
java.lang.String |
getIrName()
|
int |
getOperator()
getOperator Get operation code of "this" node. |
IR |
getParent()
getParent Get the parent of this node. |
Sym |
getResultOperand()
|
IR |
getSourceNode(int pNumber)
|
IR |
getSourceNode1()
|
IR |
getSourceNode2()
|
Sym |
getSym()
getSym Get the symbol represented by "this" node if this is a node representing a symbol (simple variable, element/field name, subprogram, label, constant, etc.). |
java.lang.Object |
getWork()
|
int |
indexOf(java.lang.Object pObject)
|
boolean |
isEmpty()
|
java.util.ListIterator |
iterator()
|
void |
print(int pIndent)
print Print this subtree in text format traversing all children of this node. |
void |
print(int pIndent,
boolean pDetail)
print Print this subtree in text format traversing all children of this node. |
java.lang.Object |
remove(int pRemovePosition)
|
boolean |
remove(java.lang.Object pObject)
|
void |
removeInf(java.lang.String pInfKindInterned)
removeInf Remove the information of the kind pInfKindInterned. |
void |
replaceOperator(int pOperator)
|
void |
replaceResultOperand(IR pOperand)
|
void |
replaceSource(int pNumber,
IR pOperand)
|
void |
replaceSource1(IR pOperand)
|
void |
replaceSource2(IR pOperand)
|
void |
replaceThisNode(IR pNewNode)
|
void |
set(int pIndex,
java.lang.Object pElement)
|
void |
setChild(int pNumber,
IR pIr)
setChild Set pHir as pNumber-th child of this node. |
void |
setChild1(IR p1)
|
void |
setChild2(IR p2)
|
void |
setIndex(int pIndex)
|
void |
setParent(IR pParent)
|
void |
setWork(java.lang.Object pWork)
|
int |
size()
|
java.lang.String |
toString()
|
java.lang.String |
toStringShort()
toStringShort |
| クラス java.lang.Object から継承したメソッド |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
public final HirRoot hirRoot
protected int fOperator
protected HirAnnex fHirAnnex
protected IR fParent
| コンストラクタの詳細 |
public IrListImpl(HirRoot pHirRoot,
java.util.LinkedList pList)
pList - LinkedList that may contain any objects.
If pList is null, an empty LinkedList is created.public IrListImpl(HirRoot pHirRoot)
| メソッドの詳細 |
public void add(java.lang.Object pElement)
IrList 内の add
public void add(int pInsertionPosition,
java.lang.Object pObjectToBeInserted)
IrList 内の addpublic java.lang.Object getFirst()
IrList 内の getFirstpublic java.lang.Object get(int pIndex)
IrList 内の get
public void set(int pIndex,
java.lang.Object pElement)
IrList 内の setpublic boolean isEmpty()
IrList 内の isEmptypublic int size()
IrList 内の sizepublic boolean contains(java.lang.Object pObject)
IrList 内の containspublic int indexOf(java.lang.Object pObject)
IrList 内の indexOfpublic java.lang.Object remove(int pRemovePosition)
IrList 内の removepublic void clear()
IrList 内の clearpublic boolean remove(java.lang.Object pObject)
IrList 内の removepublic java.util.ListIterator iterator()
IrList 内の iterator
public java.lang.Object clone()
throws java.lang.ClassCastException
java.lang.Object 内の clonejava.lang.ClassCastException
public IR getClone()
throws java.lang.CloneNotSupportedException
IrList の記述:
IrList 内の getClonejava.lang.CloneNotSupportedExceptionpublic java.lang.Object getWork()
public void setWork(java.lang.Object pWork)
public java.lang.String getIrName()
public IR buildSymNode(Sym pSym)
public IR buildNode(int pOperator)
public IR buildNode(int pOperator,
IR pSource1)
public IR buildNode(int pOperator,
IR pSource1,
IR pSource2)
public int getOperator()
IR0 の記述:
IR0 内の getOperatorpublic IR getParent()
IR の記述:
IR 内の getParentpublic void setParent(IR pParent)
public int getChildCount()
IR0 の記述:
IR0 内の getChildCountpublic IR getChild1()
IR の記述:
IR 内の getChild1public IR getChild2()
IR の記述:
IR 内の getChild2public IR getChild(int pNumber)
IR0 の記述:
IR0 内の getChildpNumber - the child number of the child to be returned.
public void setChild1(IR p1)
public void setChild2(IR p2)
public void setChild(int pNumber,
IR pIr)
IR0 の記述:
IR0 内の setChildpNumber - Child number
public void addInf(java.lang.String pInfKindInterned,
java.lang.Object pInfObject)
IR の記述:
IR 内の addInfpInfObject - Object to be added as information.
It may be String, Sym, IR, List, and so on,
hence they may be non-IR elements.public java.lang.Object getInf(java.lang.String pInfKindInterned)
IR の記述:
IR 内の getInfpublic void removeInf(java.lang.String pInfKindInterned)
IR の記述:
IR 内の removeInfpublic IrList getInfList()
IR の記述:
IR 内の getInfListpublic int getIndex()
IR0 の記述:
IR0 内の getIndexpublic void setIndex(int pIndex)
public IR getSourceNode1()
public IR getSourceNode2()
public IR getSourceNode(int pNumber)
public Sym getSym()
IR の記述:
IR 内の getSympublic FlowAnalSym getFlowAnalSym()
public Sym getResultOperand()
public void replaceSource1(IR pOperand)
public void replaceSource2(IR pOperand)
public void replaceSource(int pNumber,
IR pOperand)
public void replaceResultOperand(IR pOperand)
public void replaceThisNode(IR pNewNode)
public void replaceOperator(int pOperator)
public java.lang.String getIndentSpace(int pIndent)
public java.lang.String toString()
java.lang.Object 内の toStringpublic java.lang.String toStringShort()
IrList の記述:
IrList 内の toStringShortpublic void print(int pIndent)
IR の記述:
IR 内の printpIndent - number of heading spaces for indentation.
public void print(int pIndent,
boolean pDetail)
IR の記述:
IR 内の printpIndent - number of heading spaces for indentation.pDetail - true if detail print is requested, false otherwise.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||