|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.ir.hir.HIR_Impl | +--coins.ir.hir.SubpDefinitionImpl
Subprogram definition node.
フィールドの概要 | |
int |
fNodeIndexMax
fNodeIndexMin Minimum of the node index. |
int |
fNodeIndexMin
fNodeIndexMin Minimum of the node index. |
クラス 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 |
コンストラクタの概要 | |
SubpDefinitionImpl(HirRoot pHirRoot,
Subp pSubpSym,
SymTable pLocalSymTable,
BlockStmt pInitiation,
BlockStmt pHirBody)
|
メソッドの概要 | |
void |
accept(HirVisitor pVisitor)
accept Acceptor used in HIR visitor. |
void |
addInitiationStmt(Stmt pStmt)
Add pInitiationStmt to the tail of the block containing initiation statements that should be executed at the entry to the subprogram. |
java.lang.Object |
clone()
clone Override Object.clone in HIR. |
HIR |
copyWithOperandsChangingLabel(IrList pLabelCorrespondence)
|
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 |
print(int pIndent,
boolean pDetail)
print Print this subtree in text format traversing all children of this node. |
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. |
void |
setSymTable(SymTable pSymTable)
|
クラス java.lang.Object から継承したメソッド |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
インタフェース coins.ir.IR から継承したメソッド |
addInf, getChild1, getChild2, getInf, getInfList, getParent, getSym, 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, program, qualifiedExp, repeatStmt, replaceThisNode, returnStmt, setFlag, setIndexNumberToAllNodes, sizeofExp, sizeofExp, subpDefinition, subpNode, subscriptedExp, switchStmt, symNode, trueNode, undecayExp, varNode, whileStmt |
フィールドの詳細 |
public int fNodeIndexMin
public int fNodeIndexMax
コンストラクタの詳細 |
public SubpDefinitionImpl(HirRoot pHirRoot, Subp pSubpSym, SymTable pLocalSymTable, BlockStmt pInitiation, BlockStmt pHirBody)
メソッドの詳細 |
public SymTable getSymTable()
SubpDefinition
の記述:
SubpDefinition
内の getSymTable
public void setSymTable(SymTable pSymTable)
public Subp getSubpSym()
SubpDefinition
の記述:
SubpDefinition
内の getSubpSym
public BlockStmt getInitiationPart()
SubpDefinition
の記述: 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.
SubpDefinition
内の getInitiationPart
public void addInitiationStmt(Stmt pStmt)
SubpDefinition
の記述:
SubpDefinition
内の addInitiationStmt
pStmt
- to be added to the initiation block.public Stmt getHirBody()
SubpDefinition
の記述:
SubpDefinition
内の getHirBody
public void setHirBody(BlockStmt pHirBody)
SubpDefinition
の記述:
SubpDefinition
内の setHirBody
pHirBody
- body part to be set.public Label getStartLabel()
SubpDefinition
の記述:
SubpDefinition
内の getStartLabel
public HIR copyWithOperandsChangingLabel(IrList pLabelCorrespondence)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
HIR_Impl
の記述:
HIR_Impl
内の clone
java.lang.CloneNotSupportedException
public void print(int pIndent, boolean pDetail)
IR
の記述:
IR
内の print
HIR_Impl
内の print
pIndent
- number of heading spaces for indentation.pDetail
- true if detail print is requested, false otherwise.public void printHir(java.lang.String pHeader)
SubpDefinition
の記述:
SubpDefinition
内の printHir
pHeader
- Header message to be printed.public void accept(HirVisitor pVisitor)
HIR0
の記述:
HIR0
内の accept
HIR_Impl
内の accept
pVisitor
- HirVisitorpublic int getNodeIndexMin()
SubpDefinition
の記述:
SubpDefinition
内の getNodeIndexMin
public int getNodeIndexMax()
SubpDefinition
の記述:
SubpDefinition
内の getNodeIndexMax
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |