|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object
|
+--coins.ir.hir.HIR_Impl
|
+--coins.ir.hir.StmtImpl
|
+--coins.ir.hir.SwitchStmtImpl
switch statement class. (by S. Fukuda)
| フィールドの概要 | |
Label |
defaultLabel
|
Label |
endLabel
|
| クラス coins.ir.hir.StmtImpl から継承したフィールド |
fMultiBlock, fNextStmt, fPrevStmt |
| クラス 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 |
| コンストラクタの概要 | |
SwitchStmtImpl()
|
|
SwitchStmtImpl(HirRoot pHirRoot)
|
|
SwitchStmtImpl(HirRoot pHirRoot,
Exp pSelectionExp,
IrList pJumpList,
Label pDefaultLabel,
Stmt pBodyStmt,
Label pEndLabel)
SwitchStmtImpl SwitchStmt -> ( switchCode Exp @ // Case selection expression. |
|
| メソッドの概要 | |
void |
accept(HirVisitor pVisitor)
accept Acceptor used in HIR visitor. |
java.lang.Object |
clone()
clone Override Object.clone in HIR. |
void |
combineWithConditionalExp(Stmt pStmt,
HIR pCond)
Combine pStmt with conditional expression part pCond of control statement so that pStmt should be executed before pCond. |
Stmt |
getBodyStmt()
Gget switch-body statement that contains case statements. |
Const |
getCaseConst(int index)
Get the n-th (head is 0) case constant. |
int |
getCaseCount()
|
Label |
getCaseLabel(int index)
getCaseLabel Get n-th (head is 0) case label. |
LabelNode |
getCaseLabelNode(int index)
getCaseLabelNode Get LabelNode of n-th (head is 0) case label. |
Label |
getDefaultLabel()
Get default label |
LabelNode |
getDefaultLabelNode()
Get default label node |
Label |
getEndLabel()
Get break destination label (switch-end label) of this switch statement. |
Exp |
getSelectionExp()
Get selection expression |
LabeledStmt |
getSwitchEndNode()
Get the switch end node to where break statements jump. |
void |
setSelectionExp(Exp pSelectionExp)
Set selection expression |
| クラス java.lang.Object から継承したメソッド |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| インタフェース coins.ir.IR から継承したメソッド |
addInf, getChild1, getChild2, getInf, getInfList, getParent, getSym, print, print, removeInf |
| インタフェース coins.ir.IR0 から継承したメソッド |
getChild, getChildCount, getIndex, getOperator, setChild |
| インタフェース coins.ir.hir.HIR0 から継承したメソッド |
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, print, program, qualifiedExp, repeatStmt, replaceThisNode, returnStmt, setFlag, setIndexNumberToAllNodes, sizeofExp, sizeofExp, subpDefinition, subpNode, subscriptedExp, switchStmt, symNode, trueNode, undecayExp, varNode, whileStmt |
| フィールドの詳細 |
public Label defaultLabel
public Label endLabel
| コンストラクタの詳細 |
public SwitchStmtImpl(HirRoot pHirRoot,
Exp pSelectionExp,
IrList pJumpList,
Label pDefaultLabel,
Stmt pBodyStmt,
Label pEndLabel)
public SwitchStmtImpl()
public SwitchStmtImpl(HirRoot pHirRoot)
| メソッドの詳細 |
public Exp getSelectionExp()
SwitchStmt の記述:
SwitchStmt 内の getSelectionExppublic void setSelectionExp(Exp pSelectionExp)
SwitchStmt の記述:
SwitchStmt 内の setSelectionExppSelectionExp - Selection expression of this switch statement.public int getCaseCount()
SwitchStmt 内の getCaseCountpublic Const getCaseConst(int index)
SwitchStmt の記述:
SwitchStmt 内の getCaseConstpublic Label getCaseLabel(int index)
SwitchStmt の記述:
SwitchStmt 内の getCaseLabelpublic LabelNode getCaseLabelNode(int index)
SwitchStmt の記述:
SwitchStmt 内の getCaseLabelNodepublic Label getDefaultLabel()
SwitchStmt の記述:
SwitchStmt 内の getDefaultLabelpublic LabelNode getDefaultLabelNode()
SwitchStmt の記述:
SwitchStmt 内の getDefaultLabelNodepublic Label getEndLabel()
SwitchStmt の記述:
SwitchStmt 内の getEndLabelpublic Stmt getBodyStmt()
SwitchStmt の記述:
SwitchStmt 内の getBodyStmtpublic LabeledStmt getSwitchEndNode()
SwitchStmt の記述:
SwitchStmt 内の getSwitchEndNode
public void combineWithConditionalExp(Stmt pStmt,
HIR pCond)
Stmt 内の combineWithConditionalExpStmtImpl 内の combineWithConditionalExppStmt - statement to be executed before pCond.pCond - conditional expression to be combined with pStmt.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
HIR_Impl の記述:
StmtImpl 内の clonejava.lang.CloneNotSupportedExceptionpublic void accept(HirVisitor pVisitor)
HIR0 の記述:
HIR0 内の acceptHIR_Impl 内の acceptpVisitor - HirVisitor
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||