|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Subprogram definition node.
フィールドの概要 |
インタフェース coins.ir.hir.HIR から継承したフィールド |
OP_CODE_NAME, OP_CODE_NAME_DENSE |
インタフェース coins.ir.IR から継承したフィールド |
OP_INF, OP_LIST, OP_PROG, OP_SUBP_DEF |
メソッドの概要 | |
void |
addInitiationStmt(Stmt pInitiationStmt)
Add pInitiationStmt to the tail of the block containing initiation statements that should be executed at the entry to the subprogram. |
Stmt |
getHirBody()
Get the body part of the subprogram. |
BlockStmt |
getInitiationPart()
Get the block containing statements that initiate variables local to the subprogram. |
int |
getNodeIndexMax()
Get the node index attached at the last node of the subprogram definition. |
int |
getNodeIndexMin()
Get the node index attached at the first node of the subprogram definition. |
Label |
getStartLabel()
Get the start label that is attached at the head of subprogram body. |
Subp |
getSubpSym()
Get the subprogram symbol of this subprogram definition. |
SymTable |
getSymTable()
Get the symbol table local to the subprogram. |
void |
printHir(java.lang.String pHeader)
printHir Print the HIR body of this subprogram. |
void |
setHirBody(BlockStmt pHirBody)
Set pHirBody as the body part of the subprogram. |
インタフェース 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 SymTable getSymTable()
public Subp getSubpSym()
public BlockStmt getInitiationPart()
Get the block containing statements that initiate variables local to the subprogram. Note: In C language, initial value specification should be evaluated at the position where the initial value declaration statement encountered. This means that the initiation statement in HIR should be placed at the position where the declaration statement is encountered, just as executable statement. Thus, if the source language is C, getInitiationPart() will return empty BlockStmt or null.
public void addInitiationStmt(Stmt pInitiationStmt)
pInitiationStmt
- to be added to the initiation block.public Stmt getHirBody()
public void setHirBody(BlockStmt pHirBody)
pHirBody
- body part to be set.public Label getStartLabel()
public void printHir(java.lang.String pHeader)
pHeader
- Header message to be printed.public int getNodeIndexMin()
public int getNodeIndexMax()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |