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 ASTVisitorpublic void postVisit(ASTProgram node)
postVisit in interface ASTVisitorpublic void preVisit(ASTFunction node)
preVisit in interface ASTVisitorpublic void postVisit(ASTFunction node)
postVisit in interface ASTVisitorpublic void preVisit(ASTVariable node)
preVisit in interface ASTVisitorpublic void postVisit(ASTVariable node)
postVisit in interface ASTVisitorpublic void preVisit(ASTBlock node)
preVisit in interface ASTVisitorpublic void postVisit(ASTBlock node)
postVisit in interface ASTVisitorpublic void preVisit(ASTAssignment node)
preVisit in interface ASTVisitorpublic void postVisit(ASTAssignment node)
postVisit in interface ASTVisitorpublic void preVisit(ASTVoidFunctionCall node)
preVisit in interface ASTVisitorpublic void postVisit(ASTVoidFunctionCall node)
postVisit in interface ASTVisitorpublic void preVisit(ASTConditional node)
preVisit in interface ASTVisitorpublic void postVisit(ASTConditional node)
postVisit in interface ASTVisitorpublic void preVisit(ASTWhileLoop node)
preVisit in interface ASTVisitorpublic void postVisit(ASTWhileLoop node)
postVisit in interface ASTVisitorpublic void preVisit(ASTReturn node)
preVisit in interface ASTVisitorpublic void postVisit(ASTReturn node)
postVisit in interface ASTVisitorpublic void preVisit(ASTBreak node)
preVisit in interface ASTVisitorpublic void postVisit(ASTBreak node)
postVisit in interface ASTVisitorpublic void preVisit(ASTContinue node)
preVisit in interface ASTVisitorpublic void postVisit(ASTContinue node)
postVisit in interface ASTVisitorpublic void preVisit(ASTBinaryExpr node)
preVisit in interface ASTVisitorpublic void inVisit(ASTBinaryExpr node)
inVisit in interface ASTVisitorpublic void postVisit(ASTBinaryExpr node)
postVisit in interface ASTVisitorpublic void preVisit(ASTUnaryExpr node)
preVisit in interface ASTVisitorpublic void postVisit(ASTUnaryExpr node)
postVisit in interface ASTVisitorpublic void preVisit(ASTFunctionCall node)
preVisit in interface ASTVisitorpublic void postVisit(ASTFunctionCall node)
postVisit in interface ASTVisitorpublic void preVisit(ASTLocation node)
preVisit in interface ASTVisitorpublic void postVisit(ASTLocation node)
postVisit in interface ASTVisitorpublic void preVisit(ASTLiteral node)
preVisit in interface ASTVisitorpublic void postVisit(ASTLiteral node)
postVisit in interface ASTVisitorCopyright © 2019. All rights reserved.