public class DefaultASTVisitor extends Object implements ASTVisitor
ASTVisitor
interface.
All of the preVisit
functions call
defaultPreVisit()
and
all of the postVisit
functions call
defaultPostVisit()
.
This allows subclasses to selectively implement any parts of the visitor
interface, and optionally to define default behavior for any unimplemented
parts of the interface.Constructor and Description |
---|
DefaultASTVisitor() |
public void defaultPreVisit(ASTNode node)
public void defaultInVisit(ASTNode node)
public void defaultPostVisit(ASTNode node)
public void preVisit(ASTProgram node)
preVisit
in interface ASTVisitor
public void postVisit(ASTProgram node)
postVisit
in interface ASTVisitor
public void preVisit(ASTFunction node)
preVisit
in interface ASTVisitor
public void postVisit(ASTFunction node)
postVisit
in interface ASTVisitor
public void preVisit(ASTVariable node)
preVisit
in interface ASTVisitor
public void postVisit(ASTVariable node)
postVisit
in interface ASTVisitor
public void preVisit(ASTBlock node)
preVisit
in interface ASTVisitor
public void postVisit(ASTBlock node)
postVisit
in interface ASTVisitor
public void preVisit(ASTAssignment node)
preVisit
in interface ASTVisitor
public void postVisit(ASTAssignment node)
postVisit
in interface ASTVisitor
public void preVisit(ASTVoidFunctionCall node)
preVisit
in interface ASTVisitor
public void postVisit(ASTVoidFunctionCall node)
postVisit
in interface ASTVisitor
public void preVisit(ASTConditional node)
preVisit
in interface ASTVisitor
public void postVisit(ASTConditional node)
postVisit
in interface ASTVisitor
public void preVisit(ASTWhileLoop node)
preVisit
in interface ASTVisitor
public void postVisit(ASTWhileLoop node)
postVisit
in interface ASTVisitor
public void preVisit(ASTReturn node)
preVisit
in interface ASTVisitor
public void postVisit(ASTReturn node)
postVisit
in interface ASTVisitor
public void preVisit(ASTBreak node)
preVisit
in interface ASTVisitor
public void postVisit(ASTBreak node)
postVisit
in interface ASTVisitor
public void preVisit(ASTContinue node)
preVisit
in interface ASTVisitor
public void postVisit(ASTContinue node)
postVisit
in interface ASTVisitor
public void preVisit(ASTBinaryExpr node)
preVisit
in interface ASTVisitor
public void inVisit(ASTBinaryExpr node)
inVisit
in interface ASTVisitor
public void postVisit(ASTBinaryExpr node)
postVisit
in interface ASTVisitor
public void preVisit(ASTUnaryExpr node)
preVisit
in interface ASTVisitor
public void postVisit(ASTUnaryExpr node)
postVisit
in interface ASTVisitor
public void preVisit(ASTFunctionCall node)
preVisit
in interface ASTVisitor
public void postVisit(ASTFunctionCall node)
postVisit
in interface ASTVisitor
public void preVisit(ASTLocation node)
preVisit
in interface ASTVisitor
public void postVisit(ASTLocation node)
postVisit
in interface ASTVisitor
public void preVisit(ASTLiteral node)
preVisit
in interface ASTVisitor
public void postVisit(ASTLiteral node)
postVisit
in interface ASTVisitor
Copyright © 2019. All rights reserved.