|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.ir.hir.HIR_Impl | +--coins.ir.hir.StmtImpl | +--coins.ir.hir.IfStmtImpl
If-statement class. If then-part is not given, NullNode with label is inserted. (2001/6)
フィールドの概要 |
クラス 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 |
コンストラクタの概要 | |
IfStmtImpl(HirRoot pHirRoot,
Exp pCondition,
Stmt pThenPart,
Stmt pElsePart)
|
メソッドの概要 | |
void |
accept(HirVisitor pVisitor)
accept Acceptor used in HIR visitor. |
void |
addToElsePart(Stmt pStmt,
boolean pBeforeBranch)
addToElsePart Add pStmt to the tail of else-part of this if-statement. |
void |
addToThenPart(Stmt pStmt,
boolean pBeforeBranch)
addToThenPart Add pStmt to the tail of then-part of this if-statement. |
void |
combineWithConditionalExp(Stmt pStmt,
HIR pCond)
Combine pStmt with conditional expression part pCond of control statement so that pStmt should be executed before pCond. |
LabeledStmt |
getElsePart()
getElsePart Get the else-part of if-statement. |
Label |
getEndLabel()
getEndLabel (##2) Get the end label of if-statement. |
Exp |
getIfCondition()
getIfCondition Get the condition part of if-statement. |
LabeledStmt |
getThenPart()
getThenPart Get the then-part of if-statement. |
void |
replaceElsePart(LabeledStmt pNewElsePart)
replaceThenPart Replace the else-part of this if-statement by pNewElsePart. |
void |
replaceThenPart(LabeledStmt pNewThenPart)
replaceThenPart Replace the then-part of this if-statement by pNewThenPart. |
void |
setIfCondition(Exp pCondition)
setIfCondition Set the condition part of if-statement. |
クラス 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 IfStmtImpl(HirRoot pHirRoot, Exp pCondition, Stmt pThenPart, Stmt pElsePart)
メソッドの詳細 |
public Exp getIfCondition()
IfStmt
内の getIfCondition
public void setIfCondition(Exp pCondition)
IfStmt
の記述:
IfStmt
内の setIfCondition
pCondition
- Condition expression to be set.public LabeledStmt getThenPart()
IfStmt
の記述:
IfStmt
内の getThenPart
public LabeledStmt getElsePart()
IfStmt
の記述:
IfStmt
内の getElsePart
public Label getEndLabel()
IfStmt
の記述:
IfStmt
内の getEndLabel
public void addToThenPart(Stmt pStmt, boolean pBeforeBranch)
IfStmt
の記述:
IfStmt
内の addToThenPart
pStmt
- Statement to be added.pBeforeBranch
- true if addition before branch point.public void addToElsePart(Stmt pStmt, boolean pBeforeBranch)
IfStmt
の記述:
IfStmt
内の addToElsePart
pStmt
- Statement to be added.pBeforeBranch
- true if addition before branch point.public void replaceThenPart(LabeledStmt pNewThenPart)
IfStmt
の記述:
IfStmt
内の replaceThenPart
pNewThenPart
- Statement used for replacement.public void replaceElsePart(LabeledStmt pNewElsePart)
IfStmt
の記述:
IfStmt
内の replaceElsePart
pNewElsePart
- Statement used for replacement.public void combineWithConditionalExp(Stmt pStmt, HIR pCond)
Stmt
内の combineWithConditionalExp
StmtImpl
内の combineWithConditionalExp
pStmt
- statement to be executed before pCond.pCond
- conditional expression to be combined with pStmt.public void accept(HirVisitor pVisitor)
HIR0
の記述:
HIR0
内の accept
HIR_Impl
内の accept
pVisitor
- HirVisitor
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |