|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
ExpListExp Interface for the 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). ExpListExp -> (explistCode List_of_ListElement_ ) ListElement_ -> Exp | (exprepeatCode RepeatCount_ ListElement_ ) RepeatCount_ -> ConstNode // integer constant node representing // repetition count.
フィールドの概要 |
インタフェース coins.ir.hir.HIR から継承したフィールド |
OP_CODE_NAME, OP_CODE_NAME_DENSE |
インタフェース coins.ir.IR から継承したフィールド |
OP_INF, OP_LIST, OP_PROG, OP_SUBP_DEF |
メソッドの概要 | |
Exp |
getExp(int pIndex)
getExp Get the i-th element of the expression list, where i is given by the parameter pIndex. |
Exp |
getWithRepeat(int pIndex)
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. |
java.util.ListIterator |
iterator()
Make iterator to traverse all elements of the list. |
int |
length()
length |
void |
print(int pIndent)
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. |
void |
setExp(int pIndex,
Exp pExp)
set Set pExp as pIndex-th element of the expression list. |
int |
size()
size |
java.lang.String |
toString()
toString Get text representation of this node without traversing children. |
インタフェース 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.hir.HirList から継承したメソッド |
add, add, contains, get, getFirst, hirListClone, indexOf, isEmpty, remove, remove, set |
インタフェース coins.ir.IrList から継承したメソッド |
clear, getClone, toStringShort |
メソッドの詳細 |
public int size()
HirList
内の size
public int length()
public Exp getExp(int pIndex)
pIndex
- element index number.
public Exp getWithRepeat(int pIndex)
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.
pIndex
- index number corresponding to the element
to be returned.
public void setExp(int pIndex, Exp pExp)
pIndex
- index number corresponding to the element
to be set.pExp
- element to be set.public java.util.ListIterator iterator()
HirList
内の iterator
public java.lang.String toString()
HIR
の記述:
HIR
内の toString
java.lang.Object
内の toString
public void print(int pIndent)
IR
内の print
pIndent
- the start column to print.public void print(int indent, boolean detail)
IR
内の print
indent
- number of heading spaces for indentation.detail
- true if detail print is requested, false otherwise.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |