|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.ir.hir.HIR_Impl | +--coins.ir.hir.ExpImpl | +--coins.ir.hir.ExpListExpImpl
ExpListExpImpl Expression representing a list of expressions (Exp). Its operator is OP_EXPLIST. This is used to represent a list of initial values. The element of the list may be a repetition specification that specifies repetition count (as child 1) and elements to be repeated (as child 2).
フィールドの概要 | |
(パッケージプライベート) java.util.LinkedList |
values
|
クラス coins.ir.hir.HIR_Impl から継承したフィールド |
fAdditionalChild, fChildCount, fChildNode1, fChildNode2, fDbgLevel, fHirAnnex, fOperator, fParentNode, fType, hirRoot, inversionTable, machineParam, sourceLanguage |
インタフェース coins.ir.hir.HIR から継承したフィールド |
OP_CODE_NAME, OP_CODE_NAME_DENSE |
インタフェース coins.ir.IR から継承したフィールド |
OP_INF, OP_LIST, OP_PROG, OP_SUBP_DEF |
コンストラクタの概要 | |
ExpListExpImpl(HirRoot pHirRoot,
java.util.List list)
|
メソッドの概要 | |
void |
add(int pInsertionPosition,
java.lang.Object pObjectToBeInserted)
|
void |
add(java.lang.Object pElement)
Specifications of following methods are the same to those of List in java.util. |
void |
clear()
|
java.lang.Object |
clone()
clone Override Object.clone in HIR. |
boolean |
contains(java.lang.Object pObject)
|
java.lang.Object |
get(int pIndex)
|
Exp |
getExp(int index)
getExp Get the i-th element of the expression list, where i is given by the parameter pIndex. |
java.lang.Object |
getFirst()
|
Exp |
getWithRepeat(int index)
getWithRepeat Get the i-th final element of the expression list assuming as if the nest of list is expanded, where i is given by the parameter pIndex. |
HirList |
hirListClone()
hirListClone Make the clone of this node to get a clone in the situation where clone() can not be used directly. |
int |
indexOf(java.lang.Object pObject)
|
boolean |
isEmpty()
|
java.util.ListIterator |
iterator()
Make iterator to traverse all elements of the list. |
int |
length()
length |
void |
print(int indent)
Print the list enclosing the string images of all elements by parenthesis. |
void |
print(int indent,
boolean detail)
Print the list enclosing the detailed string images of all elements by parenthesis. |
java.lang.Object |
remove(int pRemovePosition)
|
boolean |
remove(java.lang.Object pObject)
|
void |
set(int pIndex,
java.lang.Object pElement)
|
void |
setExp(int index,
Exp exp)
set Set pExp as pIndex-th element of the expression list. |
int |
size()
size |
java.lang.String |
toStringWithChildren()
toStringWithChildren Get the string of this node and its children traversing the children in depth-first order. |
クラス java.lang.Object から継承したメソッド |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
インタフェース coins.ir.hir.ExpListExp から継承したメソッド |
toString |
インタフェース coins.ir.hir.Exp から継承したメソッド |
adjustTypesOfBinaryOperands, evaluate, evaluateAsDouble, evaluateAsFloat, evaluateAsInt, evaluateAsLong, findSubpType, fold, getActualParamList, getArrayExp, getConstSym, getElem, getElemSizeExp, getExp1, getExp2, getLabel, getPointedElem, getPointerExp, getQualifiedElem, getQualifierExp, getSubp, getSubpSpec, getSubscriptExp, getValueString, getVar, initiateArray, isEvaluable |
インタフェース coins.ir.IR から継承したメソッド |
addInf, getChild1, getChild2, getInf, getInfList, getParent, getSym, removeInf |
インタフェース coins.ir.IR0 から継承したメソッド |
getChild, getChildCount, getIndex, getOperator, setChild |
インタフェース coins.ir.hir.HIR0 から継承したメソッド |
accept, assignStmt, blockStmt, callStmt, constNode, contentsExp, convExp, copyWithOperands, copyWithOperandsChangingLabels, decayExp, elemNode, exp, exp, expStmt, falseNode, finishHir, forStmt, functionExp, getChildNumber, getFlag, getFlagBox, getNextStmt, getStmtContainingThisNode, getType, hirClone, hirIterator, hirList, hirSeq, ifStmt, intConstNode, irList, isSameAs, jumpStmt, labelDef, labeledStmt, labelNode, pointedExp, program, qualifiedExp, repeatStmt, replaceThisNode, returnStmt, setFlag, setIndexNumberToAllNodes, sizeofExp, sizeofExp, subpDefinition, subpNode, subscriptedExp, switchStmt, symNode, trueNode, undecayExp, varNode, whileStmt |
インタフェース coins.ir.IrList から継承したメソッド |
getClone, toStringShort |
フィールドの詳細 |
java.util.LinkedList values
コンストラクタの詳細 |
public ExpListExpImpl(HirRoot pHirRoot, java.util.List list)
メソッドの詳細 |
public int size()
ExpListExp
の記述:
ExpListExp
内の size
public int length()
ExpListExp
の記述:
ExpListExp
内の length
public Exp getExp(int index)
ExpListExp
の記述:
ExpListExp
内の getExp
index
- element index number.
public Exp getWithRepeat(int index)
ExpListExp
の記述: Get the i-th final element of the expression list assuming as if the nest of list is expanded, where i is given by the parameter pIndex. If the i-th element is (exprepeatCode n elem), then elem is assumed to be repeated n-times and its first one is treated as the i-th element. If there is no i-th element, return null. The end of list may be detected by encountering null as the return value of getWithRepeat method. Example Given list: (OP_EXPLIST c1 c2 (OP_EXPREPEAT c3 c4) c5) Sequence of Exp to be get by getWithRepeat: c1 c2 c4 c4 c4 c5 where, each of c1, c2, c3, c4, c5 represents constant expression whose value is 1, 2, 3, 4, 5 respectively.
ExpListExp
内の getWithRepeat
index
- index number corresponding to the element
to be returned.
public void setExp(int index, Exp exp)
ExpListExp
の記述:
ExpListExp
内の setExp
index
- index number corresponding to the element
to be set.exp
- element to be set.public void set(int pIndex, java.lang.Object pElement)
HirList
内の set
public void add(java.lang.Object pElement)
HirList
の記述: Specifications of following methods are the same to those of List in java.util. add isEmpty size contains indexOf remove listIterator
HirList
内の add
public void add(int pInsertionPosition, java.lang.Object pObjectToBeInserted)
HirList
内の add
public java.lang.Object getFirst()
HirList
内の getFirst
public java.lang.Object get(int pIndex)
HirList
内の get
public boolean isEmpty()
HirList
内の isEmpty
public boolean contains(java.lang.Object pObject)
HirList
内の contains
public int indexOf(java.lang.Object pObject)
HirList
内の indexOf
public java.lang.Object remove(int pRemovePosition)
HirList
内の remove
public boolean remove(java.lang.Object pObject)
HirList
内の remove
public void clear()
IrList
内の clear
public java.util.ListIterator iterator()
ExpListExp
の記述:
ExpListExp
内の iterator
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
HIR_Impl
の記述:
HIR_Impl
内の clone
java.lang.CloneNotSupportedException
public HirList hirListClone() throws java.lang.CloneNotSupportedException
HirList
の記述:
HirList
内の hirListClone
java.lang.CloneNotSupportedException
public void print(int indent)
ExpListExp
の記述:
ExpListExp
内の print
HIR_Impl
内の print
indent
- the start column to print.public void print(int indent, boolean detail)
ExpListExp
の記述:
ExpListExp
内の print
HIR_Impl
内の print
public java.lang.String toStringWithChildren()
HIR
の記述:
HIR
内の toStringWithChildren
HIR_Impl
内の toStringWithChildren
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |