coins.ir.hir
Class PrintVisitor
java.lang.Object
coins.ir.hir.HirVisitorModel2
coins.ir.hir.PrintVisitor
- All Implemented Interfaces:
- HirVisitor
- public class PrintVisitor
- extends HirVisitorModel2
PrintVisitor
Visitor for printing HIR
(Example of extending HirVisitorModel2.)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintVisitor
public PrintVisitor(HirRoot pHirRoot)
atProgram
public void atProgram(Program p)
- Specified by:
atProgram in interface HirVisitor- Overrides:
atProgram in class HirVisitorModel2
atSubpDefinition
public void atSubpDefinition(SubpDefinition p)
- Specified by:
atSubpDefinition in interface HirVisitor- Overrides:
atSubpDefinition in class HirVisitorModel2
atBlockStmt
public void atBlockStmt(BlockStmt p)
- Specified by:
atBlockStmt in interface HirVisitor- Overrides:
atBlockStmt in class HirVisitorModel2
atHirList
public void atHirList(HirList p)
- Specified by:
atHirList in interface HirVisitor- Overrides:
atHirList in class HirVisitorModel2
atIrList
public void atIrList(IrList p)
- Specified by:
atIrList in interface HirVisitor- Overrides:
atIrList in class HirVisitorModel2
atHirSeq
public void atHirSeq(HirSeq p)
- Specified by:
atHirSeq in interface HirVisitor- Overrides:
atHirSeq in class HirVisitorModel2
atInfNode
public void atInfNode(InfNode p)
- Specified by:
atInfNode in interface HirVisitor- Overrides:
atInfNode in class HirVisitorModel2
atInfStmt
public void atInfStmt(InfStmt p)
- Specified by:
atInfStmt in interface HirVisitor- Overrides:
atInfStmt in class HirVisitorModel2
atVarNode
public void atVarNode(VarNode p)
- Specified by:
atVarNode in interface HirVisitor- Overrides:
atVarNode in class HirVisitorModel2
atElemNode
public void atElemNode(ElemNode p)
- Specified by:
atElemNode in interface HirVisitor- Overrides:
atElemNode in class HirVisitorModel2
atSubpNode
public void atSubpNode(SubpNode p)
- Specified by:
atSubpNode in interface HirVisitor- Overrides:
atSubpNode in class HirVisitorModel2
atTypeNode
public void atTypeNode(TypeNode p)
- Specified by:
atTypeNode in interface HirVisitor- Overrides:
atTypeNode in class HirVisitorModel2
atConstNode
public void atConstNode(ConstNode p)
- Specified by:
atConstNode in interface HirVisitor- Overrides:
atConstNode in class HirVisitorModel2
atLabelNode
public void atLabelNode(LabelNode p)
- Specified by:
atLabelNode in interface HirVisitor- Overrides:
atLabelNode in class HirVisitorModel2
atSymNode
public void atSymNode(SymNode p)
- Specified by:
atSymNode in interface HirVisitor- Overrides:
atSymNode in class HirVisitorModel2
atNullNode
public void atNullNode(NullNode p)
- Specified by:
atNullNode in interface HirVisitor- Overrides:
atNullNode in class HirVisitorModel2
atLabelDef
public void atLabelDef(LabelDef p)
- Specified by:
atLabelDef in interface HirVisitor- Overrides:
atLabelDef in class HirVisitorModel2
atExp
public void atExp(Exp p)
- Specified by:
atExp in interface HirVisitor- Overrides:
atExp in class HirVisitorModel2
atSubscriptedExp
public void atSubscriptedExp(SubscriptedExp p)
- Specified by:
atSubscriptedExp in interface HirVisitor- Overrides:
atSubscriptedExp in class HirVisitorModel2
atQualifiedExp
public void atQualifiedExp(QualifiedExp p)
- Specified by:
atQualifiedExp in interface HirVisitor- Overrides:
atQualifiedExp in class HirVisitorModel2
atPointedExp
public void atPointedExp(PointedExp p)
- Specified by:
atPointedExp in interface HirVisitor- Overrides:
atPointedExp in class HirVisitorModel2
atFunctionExp
public void atFunctionExp(FunctionExp p)
- Specified by:
atFunctionExp in interface HirVisitor- Overrides:
atFunctionExp in class HirVisitorModel2
atAssignStmt
public void atAssignStmt(AssignStmt p)
- Specified by:
atAssignStmt in interface HirVisitor- Overrides:
atAssignStmt in class HirVisitorModel2
atIfStmt
public void atIfStmt(IfStmt p)
- Specified by:
atIfStmt in interface HirVisitor- Overrides:
atIfStmt in class HirVisitorModel2
atWhileStmt
public void atWhileStmt(WhileStmt p)
- Specified by:
atWhileStmt in interface HirVisitor- Overrides:
atWhileStmt in class HirVisitorModel2
atForStmt
public void atForStmt(ForStmt p)
- Specified by:
atForStmt in interface HirVisitor- Overrides:
atForStmt in class HirVisitorModel2
atUntilStmt
public void atUntilStmt(UntilStmt p)
- Specified by:
atUntilStmt in interface HirVisitor- Overrides:
atUntilStmt in class HirVisitorModel2
atLabeledStmt
public void atLabeledStmt(LabeledStmt p)
- Specified by:
atLabeledStmt in interface HirVisitor- Overrides:
atLabeledStmt in class HirVisitorModel2
atReturnStmt
public void atReturnStmt(ReturnStmt p)
- Specified by:
atReturnStmt in interface HirVisitor- Overrides:
atReturnStmt in class HirVisitorModel2
atJumpStmt
public void atJumpStmt(JumpStmt p)
- Specified by:
atJumpStmt in interface HirVisitor- Overrides:
atJumpStmt in class HirVisitorModel2
atSwitchStmt
public void atSwitchStmt(SwitchStmt p)
- Specified by:
atSwitchStmt in interface HirVisitor- Overrides:
atSwitchStmt in class HirVisitorModel2
atExpStmt
public void atExpStmt(ExpStmt p)
- Specified by:
atExpStmt in interface HirVisitor- Overrides:
atExpStmt in class HirVisitorModel2
atPhiExp
public void atPhiExp(PhiExp p)
- Specified by:
atPhiExp in interface HirVisitor- Overrides:
atPhiExp in class HirVisitorModel2