|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
If-statement.
フィールドの概要 |
インタフェース coins.ir.hir.HIR から継承したフィールド |
OP_CODE_NAME, OP_CODE_NAME_DENSE |
インタフェース coins.ir.IR から継承したフィールド |
OP_INF, OP_LIST, OP_PROG, OP_SUBP_DEF |
メソッドの概要 | |
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. |
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. |
インタフェース 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 から継承したメソッド |
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, print, program, qualifiedExp, repeatStmt, replaceThisNode, returnStmt, setFlag, setIndexNumberToAllNodes, sizeofExp, sizeofExp, subpDefinition, subpNode, subscriptedExp, switchStmt, symNode, trueNode, undecayExp, varNode, whileStmt |
メソッドの詳細 |
public Exp getIfCondition()
public void setIfCondition(Exp pCondition)
pCondition
- Condition expression to be set.public LabeledStmt getThenPart()
public LabeledStmt getElsePart()
public Label getEndLabel()
public void addToThenPart(Stmt pStmt, boolean pBeforeBranch)
pStmt
- Statement to be added.pBeforeBranch
- true if addition before branch point.public void addToElsePart(Stmt pStmt, boolean pBeforeBranch)
pStmt
- Statement to be added.pBeforeBranch
- true if addition before branch point.public void replaceThenPart(LabeledStmt pNewThenPart)
pNewThenPart
- Statement used for replacement.public void replaceElsePart(LabeledStmt pNewElsePart)
pNewElsePart
- Statement used for replacement.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |