coins.ir.hir
クラス PrintStmtVisitor
java.lang.Object
|
+--coins.ir.hir.HirVisitorModel1
|
+--coins.ir.hir.PrintStmtVisitor
- すべての実装インタフェース:
- HirVisitor
- public class PrintStmtVisitor
- extends HirVisitorModel1
PrintStmtVisitor
Example of the use of Visitor for printing HIR statement
(Extends HirVisitorModel1.)
クラス coins.ir.hir.HirVisitorModel1 から継承したメソッド |
atAsmStmt, atConstNode, atElemNode, atExp, atFunctionExp, atHirList, atHirSeq, atIndexedLoopStmt, atInfNode, atIrList, atLabelDef, atLabelNode, atLoopStmt, atNullNode, atPhiExp, atPointedExp, atProgram, atQualifiedExp, atRepeatStmt, atSubpNode, atSubscriptedExp, atSymNode, atTypeNode, atVarNode |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintStmtVisitor
public PrintStmtVisitor(HirRoot pHirRoot)
visit
public void visit(HIR pHir)
- クラス
HirVisitorModel1
の記述:
- visit
Procedure to visit nodes of pHir.
You may override this method to selectively visit
nodes in concern.
If there is a probability of setting programRoot as pHir,
Program node should be selected as a node to be accepted
because, elements of subprogram definition list is not
traversed by HirIterator.
- オーバーライド:
- クラス
HirVisitorModel1
内の visit
- パラメータ:
pHir
- root of subtree whose nodes are to be visited.
atSubpDefinition
public void atSubpDefinition(SubpDefinition p)
- 定義:
- インタフェース
HirVisitor
内の atSubpDefinition
- オーバーライド:
- クラス
HirVisitorModel1
内の atSubpDefinition
atInfStmt
public void atInfStmt(InfStmt p)
- 定義:
- インタフェース
HirVisitor
内の atInfStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atInfStmt
atAssignStmt
public void atAssignStmt(AssignStmt p)
- 定義:
- インタフェース
HirVisitor
内の atAssignStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atAssignStmt
atIfStmt
public void atIfStmt(IfStmt p)
- 定義:
- インタフェース
HirVisitor
内の atIfStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atIfStmt
atWhileStmt
public void atWhileStmt(WhileStmt p)
- 定義:
- インタフェース
HirVisitor
内の atWhileStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atWhileStmt
atForStmt
public void atForStmt(ForStmt p)
- 定義:
- インタフェース
HirVisitor
内の atForStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atForStmt
atUntilStmt
public void atUntilStmt(UntilStmt p)
- 定義:
- インタフェース
HirVisitor
内の atUntilStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atUntilStmt
atLabeledStmt
public void atLabeledStmt(LabeledStmt p)
- 定義:
- インタフェース
HirVisitor
内の atLabeledStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atLabeledStmt
atBlockStmt
public void atBlockStmt(BlockStmt p)
- 定義:
- インタフェース
HirVisitor
内の atBlockStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atBlockStmt
atReturnStmt
public void atReturnStmt(ReturnStmt p)
- 定義:
- インタフェース
HirVisitor
内の atReturnStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atReturnStmt
atJumpStmt
public void atJumpStmt(JumpStmt p)
- 定義:
- インタフェース
HirVisitor
内の atJumpStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atJumpStmt
atSwitchStmt
public void atSwitchStmt(SwitchStmt p)
- 定義:
- インタフェース
HirVisitor
内の atSwitchStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atSwitchStmt
atExpStmt
public void atExpStmt(ExpStmt p)
- 定義:
- インタフェース
HirVisitor
内の atExpStmt
- オーバーライド:
- クラス
HirVisitorModel1
内の atExpStmt