|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
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()
|
int |
length()
length |
void |
print(int pIndent)
print Print this subtree in text format traversing all children of this node. |
void |
print(int indent,
boolean detail)
print Print this subtree in text format traversing all children of this node. |
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 から継承したメソッド |
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 内の sizepublic int length()
public Exp getExp(int pIndex)
pIndex - element index number.
public Exp getWithRepeat(int pIndex)
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 内の iteratorpublic java.lang.String toString()
HIR の記述:
HIR 内の toStringjava.lang.Object 内の toStringpublic void print(int pIndent)
IR の記述:
IR 内の printpIndent - number of heading spaces for indentation.
public void print(int indent,
boolean detail)
IR の記述:
IR 内の printindent - number of heading spaces for indentation.detail - true if detail print is requested, false otherwise.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||