public abstract class DelegatingCAstVisitor<C extends CAstVisitor.Context> extends CAstVisitor<C>
CAstVisitor.Context
currentPosition, DEBUG
Modifier | Constructor and Description |
---|---|
protected |
DelegatingCAstVisitor(CAstVisitor<C> delegate)
Delegating CAstVisitor
|
Modifier and Type | Method and Description |
---|---|
protected CAstVisitor<C> |
delegate() |
protected boolean |
doVisit(CAstNode n,
C context,
CAstVisitor<C> visitor)
Node processing hook; sub-classes are expected to override if they
introduce new node types.
|
protected boolean |
doVisitEntity(CAstEntity n,
C context,
CAstVisitor<C> visitor)
Entity processing hook; sub-classes are expected to override if they
introduce new entity types.
|
protected boolean |
enterEntity(CAstEntity n,
C context,
CAstVisitor<C> visitor)
Enter the entity visitor.
|
protected boolean |
enterNode(CAstNode n,
C c,
CAstVisitor<C> visitor)
Enter the node visitor.
|
protected CAstEntity |
getParent(CAstEntity entity)
Get the parent entity for a given entity.
|
protected void |
leaveArrayLength(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an ArrayLength node.
|
protected void |
leaveArrayLiteral(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a ArrayLiteral node.
|
protected void |
leaveArrayLiteralInitElement(CAstNode n,
int i,
C c,
CAstVisitor<C> visitor)
Visit an ArrayLiteral node after processing the {i}th element initializer.
|
protected void |
leaveArrayLiteralObject(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an ArrayLiteral node after processing the array object.
|
protected void |
leaveArrayRef(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an ArrayRef node.
|
protected void |
leaveArrayRefAssign(CAstNode n,
CAstNode v,
CAstNode a,
C c,
CAstVisitor<C> visitor)
Visit an ArrayRef Assignment node after visiting the LHS.
|
protected void |
leaveArrayRefAssignOp(CAstNode n,
CAstNode v,
CAstNode a,
boolean pre,
C c,
CAstVisitor<C> visitor)
Visit an ArrayRef Op/Assignment node after visiting the LHS.
|
void |
leaveAssign(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an Assign node.
|
protected void |
leaveBinaryExpr(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a BinaryExpr node.
|
protected void |
leaveBlockExpr(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a BlockExpr node.
|
protected void |
leaveBlockExprAssign(CAstNode n,
CAstNode v,
CAstNode a,
C c,
CAstVisitor<C> visitor)
Visit a BlockExpr Assignment node after visiting the LHS.
|
protected void |
leaveBlockExprAssignOp(CAstNode n,
CAstNode v,
CAstNode a,
boolean pre,
C c,
CAstVisitor<C> visitor)
Visit a BlockExpr Op/Assignment node after visiting the LHS.
|
protected void |
leaveBlockStmt(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a BlockStmt node.
|
protected void |
leaveCall(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Call node.
|
protected void |
leaveCast(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Cast node.
|
protected void |
leaveCatch(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Catch node.
|
protected void |
leaveConstant(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Constant node.
|
protected void |
leaveDeclStmt(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a DeclStmt node.
|
protected void |
leaveEmpty(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an Empty node.
|
void |
leaveEntity(CAstEntity n,
C context,
CAstVisitor<C> visitor)
Leave any entity.
|
protected void |
leaveFieldEntity(CAstEntity n,
C context,
CAstVisitor<C> visitor)
Leave a Field entity.
|
protected void |
leaveFileEntity(CAstEntity n,
C context,
C fileContext,
CAstVisitor<C> visitor)
Leave a File entity.
|
protected void |
leaveFunctionEntity(CAstEntity n,
C context,
C codeContext,
CAstVisitor<C> visitor)
Leave a Function entity.
|
protected void |
leaveFunctionExpr(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a FunctionExpr node.
|
protected void |
leaveFunctionStmt(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a FunctionStmt node.
|
protected void |
leaveGetCaughtException(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a GetCaughtException node.
|
protected void |
leaveGoto(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Goto node.
|
protected void |
leaveIfExpr(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an IfExpr node.
|
protected void |
leaveIfExprCondition(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an IfExpr node after processing the condition.
|
protected void |
leaveIfExprTrueClause(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an IfExpr node after processing the true clause.
|
protected void |
leaveIfgoto(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an Ifgoto node.
|
protected void |
leaveIfStmt(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an IfStmt node.
|
protected void |
leaveIfStmtCondition(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an IfStmt node after processing the condition.
|
protected void |
leaveIfStmtTrueClause(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an IfStmt node after processing the true clause.
|
protected void |
leaveInstanceOf(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an InstanceOf node.
|
protected void |
leaveLabelStmt(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a LabelStmt node.
|
protected void |
leaveLocalScope(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a LocalScope node.
|
protected void |
leaveLoop(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Loop node.
|
protected void |
leaveLoopHeader(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Loop node after processing the loop header.
|
protected void |
leaveNew(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a New node.
|
void |
leaveNode(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave any node.
|
protected void |
leaveObjectLiteral(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an ObjectLiteral node.
|
protected void |
leaveObjectLiteralFieldInit(CAstNode n,
int i,
C c,
CAstVisitor<C> visitor)
Visit an ObjectLiteral node after processing the {i}th field initializer.
|
protected void |
leaveObjectRef(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an ObjectRef node.
|
protected void |
leaveObjectRefAssign(CAstNode n,
CAstNode v,
CAstNode a,
C c,
CAstVisitor<C> visitor)
Visit an ObjectRef Assignment node after visiting the LHS.
|
protected void |
leaveObjectRefAssignOp(CAstNode n,
CAstNode v,
CAstNode a,
boolean pre,
C c,
CAstVisitor<C> visitor)
Visit an ObjectRef Op/Assignment node after visiting the LHS.
|
protected void |
leavePrimitive(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Primitive node.
|
protected void |
leaveReturn(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Return node.
|
protected void |
leaveScriptEntity(CAstEntity n,
C context,
C codeContext,
CAstVisitor<C> visitor)
Leave a Script entity.
|
protected void |
leaveSpecialParentScope(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a LocalScope node.
|
protected void |
leaveSuper(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Super node.
|
protected void |
leaveSwitch(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Switch node.
|
protected void |
leaveSwitchValue(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Switch node after processing the switch value.
|
protected void |
leaveThis(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a This node.
|
protected void |
leaveThrow(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Throw node.
|
protected void |
leaveTry(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Try node.
|
protected void |
leaveTryBlock(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Try node after processing the try block.
|
protected void |
leaveTypeEntity(CAstEntity n,
C context,
C typeContext,
CAstVisitor<C> visitor)
Leave a Type entity.
|
protected void |
leaveUnaryExpr(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a UnaryExpr node.
|
protected void |
leaveUnwind(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave an Unwind node.
|
protected void |
leaveVar(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Var node.
|
protected void |
leaveVarAssign(CAstNode n,
CAstNode v,
CAstNode a,
C c,
CAstVisitor<C> visitor)
Visit a Var Assignment node after visiting the LHS.
|
protected void |
leaveVarAssignOp(CAstNode n,
CAstNode v,
CAstNode a,
boolean pre,
C c,
CAstVisitor<C> visitor)
Visit a Var Op/Assignment node after visiting the LHS.
|
protected void |
leaveVoid(CAstNode n,
C c,
CAstVisitor<C> visitor)
Leave a Void node.
|
protected C |
makeCodeContext(C context,
CAstEntity n)
Construct a context for a Code entity or delegate by default.
|
protected C |
makeFileContext(C context,
CAstEntity n)
Construct a context for a File entity or delegate by default.
|
protected C |
makeLocalContext(C context,
CAstNode n)
Construct a context for a LocalScope node or delegate by default.
|
protected C |
makeTypeContext(C context,
CAstEntity n)
Construct a context for a Type entity or delegate by default.
|
protected C |
makeUnwindContext(C context,
CAstNode n,
CAstVisitor<C> visitor)
Construct a context for an Unwind node or delegate by default.
|
protected void |
postProcessEntity(CAstEntity n,
C context,
CAstVisitor<C> visitor)
Post-process an entity after visiting it.
|
protected void |
postProcessNode(CAstNode n,
C c,
CAstVisitor<C> visitor)
Post-process a node after visiting it.
|
protected void |
setParent(CAstEntity entity,
CAstEntity parent)
Set the parent entity for a given entity.
|
protected boolean |
visitArrayLength(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an ArrayLength node.
|
protected boolean |
visitArrayLiteral(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an ArrayLiteral node.
|
protected boolean |
visitArrayRef(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an ArrayRef node.
|
protected boolean |
visitArrayRefAssign(CAstNode n,
CAstNode v,
CAstNode a,
C c,
CAstVisitor<C> visitor)
Visit an ArrayRef Assignment node after visiting the RHS.
|
protected boolean |
visitArrayRefAssignOp(CAstNode n,
CAstNode v,
CAstNode a,
boolean pre,
C c,
CAstVisitor<C> visitor)
Visit an ArrayRef Op/Assignment node after visiting the RHS.
|
boolean |
visitAssign(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an Assign node.
|
protected boolean |
visitBinaryExpr(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a BinaryExpr node.
|
protected boolean |
visitBlockExpr(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a BlockExpr node.
|
protected boolean |
visitBlockExprAssign(CAstNode n,
CAstNode v,
CAstNode a,
C c,
CAstVisitor<C> visitor)
Visit a BlockExpr Assignment node after visiting the RHS.
|
protected boolean |
visitBlockExprAssignOp(CAstNode n,
CAstNode v,
CAstNode a,
boolean pre,
C c,
CAstVisitor<C> visitor)
Visit a BlockExpr Op/Assignment node after visiting the RHS.
|
protected boolean |
visitBlockStmt(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a BlockStmt node.
|
protected boolean |
visitCall(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Call node.
|
protected boolean |
visitCast(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Cast node.
|
protected boolean |
visitCatch(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Catch node.
|
protected boolean |
visitConstant(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Constant node.
|
protected boolean |
visitDeclStmt(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a DeclStmt node.
|
protected boolean |
visitEmpty(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an Empty node.
|
boolean |
visitEntity(CAstEntity n,
C context,
CAstVisitor<C> visitor)
Visit any entity.
|
protected boolean |
visitFieldEntity(CAstEntity n,
C context,
CAstVisitor<C> visitor)
Visit a Field entity.
|
protected boolean |
visitFileEntity(CAstEntity n,
C context,
C fileContext,
CAstVisitor<C> visitor)
Visit a File entity.
|
protected boolean |
visitFunctionEntity(CAstEntity n,
C context,
C codeContext,
CAstVisitor<C> visitor)
Visit a Function entity.
|
protected boolean |
visitFunctionExpr(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a FunctionExpr node.
|
protected boolean |
visitFunctionStmt(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a FunctionStmt node.
|
protected boolean |
visitGetCaughtException(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a GetCaughtException node.
|
protected boolean |
visitGoto(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Goto node.
|
protected boolean |
visitIfExpr(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an IfExpr node.
|
protected boolean |
visitIfgoto(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an Ifgoto node.
|
protected boolean |
visitIfStmt(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an IfStmt node.
|
protected boolean |
visitInstanceOf(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an InstanceOf node.
|
protected boolean |
visitLabelStmt(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a LabelStmt node.
|
protected boolean |
visitLocalScope(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a LocalScope node.
|
protected boolean |
visitLoop(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Loop node.
|
protected boolean |
visitNew(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a New node.
|
boolean |
visitNode(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit any node.
|
protected boolean |
visitObjectLiteral(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an ObjectLiteral node.
|
protected boolean |
visitObjectRef(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an ObjectRef node.
|
protected boolean |
visitObjectRefAssign(CAstNode n,
CAstNode v,
CAstNode a,
C c,
CAstVisitor<C> visitor)
Visit an ObjectRef Assignment node after visiting the RHS.
|
protected boolean |
visitObjectRefAssignOp(CAstNode n,
CAstNode v,
CAstNode a,
boolean pre,
C c,
CAstVisitor<C> visitor)
Visit an ObjectRef Op/Assignment node after visiting the RHS.
|
protected boolean |
visitPrimitive(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Primitive node.
|
protected boolean |
visitReturn(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Return node.
|
protected boolean |
visitScriptEntity(CAstEntity n,
C context,
C codeContext,
CAstVisitor<C> visitor)
Visit a Script entity.
|
protected boolean |
visitSpecialParentScope(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a LocalScope node.
|
protected boolean |
visitSuper(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Super node.
|
protected boolean |
visitSwitch(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Switch node.
|
protected boolean |
visitThis(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a This node.
|
protected boolean |
visitThrow(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Throw node.
|
protected boolean |
visitTry(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Try node.
|
protected boolean |
visitTypeEntity(CAstEntity n,
C context,
C typeContext,
CAstVisitor<C> visitor)
Visit a Type entity.
|
protected boolean |
visitUnaryExpr(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a UnaryExpr node.
|
protected boolean |
visitUnwind(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit an Unwind node.
|
protected boolean |
visitVar(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Var node.
|
protected boolean |
visitVarAssign(CAstNode n,
CAstNode v,
CAstNode a,
C c,
CAstVisitor<C> visitor)
Visit a Var Assignment node after visiting the RHS.
|
protected boolean |
visitVarAssignOp(CAstNode n,
CAstNode v,
CAstNode a,
boolean pre,
C c,
CAstVisitor<C> visitor)
Visit a Var Op/Assignment node after visiting the RHS.
|
protected boolean |
visitVoid(CAstNode n,
C c,
CAstVisitor<C> visitor)
Visit a Void node.
|
doVisitArrayRefNode, doVisitAssignNodes, getCurrentPosition, leaveAssert, leaveEachElementGet, leaveEachElementHasNext, leaveEcho, leaveForIn, leaveGlobalEntity, leaveInclude, leaveIsDefinedExpr, leaveMacroEntity, leaveMacroVar, leaveTypeLiteralExpr, makeSpecialParentContext, visit, visitAllChildren, visitAssert, visitAssignNodes, visitChildren, visitEachElementGet, visitEachElementHasNext, visitEcho, visitEntities, visitForIn, visitGlobalEntity, visitInclude, visitIsDefinedExpr, visitMacroEntity, visitMacroVar, visitScopedEntities, visitScopedEntities, visitTypeLiteralExpr
protected DelegatingCAstVisitor(CAstVisitor<C> delegate)
delegate
- the visitor to delegate to for default implementationprotected C makeFileContext(C context, CAstEntity n)
makeFileContext
in class CAstVisitor<C extends CAstVisitor.Context>
context
- a visitor-specific context in which this file was visitedn
- the file entityprotected C makeTypeContext(C context, CAstEntity n)
makeTypeContext
in class CAstVisitor<C extends CAstVisitor.Context>
context
- a visitor-specific context in which this type was visitedn
- the type entityprotected C makeCodeContext(C context, CAstEntity n)
makeCodeContext
in class CAstVisitor<C extends CAstVisitor.Context>
context
- a visitor-specific context in which the code was visitedn
- the code entityprotected C makeLocalContext(C context, CAstNode n)
makeLocalContext
in class CAstVisitor<C extends CAstVisitor.Context>
context
- a visitor-specific context in which the local scope was visitedn
- the local scope nodeprotected C makeUnwindContext(C context, CAstNode n, CAstVisitor<C> visitor)
makeUnwindContext
in class CAstVisitor<C extends CAstVisitor.Context>
context
- a visitor-specific context in which the unwind was visitedn
- the unwind nodeprotected CAstEntity getParent(CAstEntity entity)
getParent
in class CAstVisitor<C extends CAstVisitor.Context>
entity
- the child entityprotected void setParent(CAstEntity entity, CAstEntity parent)
setParent
in class CAstVisitor<C extends CAstVisitor.Context>
entity
- the child entityparent
- the parent entityprotected final CAstVisitor<C> delegate()
protected boolean doVisitEntity(CAstEntity n, C context, CAstVisitor<C> visitor)
doVisitEntity
in class CAstVisitor<C extends CAstVisitor.Context>
protected boolean enterEntity(CAstEntity n, C context, CAstVisitor<C> visitor)
enterEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextprotected void postProcessEntity(CAstEntity n, C context, CAstVisitor<C> visitor)
postProcessEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextpublic boolean visitEntity(CAstEntity n, C context, CAstVisitor<C> visitor)
visitEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextpublic void leaveEntity(CAstEntity n, C context, CAstVisitor<C> visitor)
leaveEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextprotected boolean visitFileEntity(CAstEntity n, C context, C fileContext, CAstVisitor<C> visitor)
visitFileEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextfileContext
- a visitor-specific context for this fileprotected void leaveFileEntity(CAstEntity n, C context, C fileContext, CAstVisitor<C> visitor)
leaveFileEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextfileContext
- a visitor-specific context for this fileprotected boolean visitFieldEntity(CAstEntity n, C context, CAstVisitor<C> visitor)
visitFieldEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextprotected void leaveFieldEntity(CAstEntity n, C context, CAstVisitor<C> visitor)
leaveFieldEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextprotected boolean visitTypeEntity(CAstEntity n, C context, C typeContext, CAstVisitor<C> visitor)
visitTypeEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contexttypeContext
- a visitor-specific context for this typeprotected void leaveTypeEntity(CAstEntity n, C context, C typeContext, CAstVisitor<C> visitor)
leaveTypeEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contexttypeContext
- a visitor-specific context for this typeprotected boolean visitFunctionEntity(CAstEntity n, C context, C codeContext, CAstVisitor<C> visitor)
visitFunctionEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextcodeContext
- a visitor-specific context for this functionprotected void leaveFunctionEntity(CAstEntity n, C context, C codeContext, CAstVisitor<C> visitor)
leaveFunctionEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextcodeContext
- a visitor-specific context for this functionprotected boolean visitScriptEntity(CAstEntity n, C context, C codeContext, CAstVisitor<C> visitor)
visitScriptEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextcodeContext
- a visitor-specific context for this scriptprotected void leaveScriptEntity(CAstEntity n, C context, C codeContext, CAstVisitor<C> visitor)
leaveScriptEntity
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the entity to processcontext
- a visitor-specific contextcodeContext
- a visitor-specific context for this scriptprotected boolean doVisit(CAstNode n, C context, CAstVisitor<C> visitor)
doVisit
in class CAstVisitor<C extends CAstVisitor.Context>
protected boolean enterNode(CAstNode n, C c, CAstVisitor<C> visitor)
enterNode
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void postProcessNode(CAstNode n, C c, CAstVisitor<C> visitor)
postProcessNode
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextpublic boolean visitNode(CAstNode n, C c, CAstVisitor<C> visitor)
visitNode
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextpublic void leaveNode(CAstNode n, C c, CAstVisitor<C> visitor)
leaveNode
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitFunctionExpr(CAstNode n, C c, CAstVisitor<C> visitor)
visitFunctionExpr
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveFunctionExpr(CAstNode n, C c, CAstVisitor<C> visitor)
leaveFunctionExpr
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitFunctionStmt(CAstNode n, C c, CAstVisitor<C> visitor)
visitFunctionStmt
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveFunctionStmt(CAstNode n, C c, CAstVisitor<C> visitor)
leaveFunctionStmt
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitLocalScope(CAstNode n, C c, CAstVisitor<C> visitor)
visitLocalScope
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveLocalScope(CAstNode n, C c, CAstVisitor<C> visitor)
leaveLocalScope
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitBlockExpr(CAstNode n, C c, CAstVisitor<C> visitor)
visitBlockExpr
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveBlockExpr(CAstNode n, C c, CAstVisitor<C> visitor)
leaveBlockExpr
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitBlockStmt(CAstNode n, C c, CAstVisitor<C> visitor)
visitBlockStmt
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveBlockStmt(CAstNode n, C c, CAstVisitor<C> visitor)
leaveBlockStmt
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitLoop(CAstNode n, C c, CAstVisitor<C> visitor)
visitLoop
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveLoopHeader(CAstNode n, C c, CAstVisitor<C> visitor)
leaveLoopHeader
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveLoop(CAstNode n, C c, CAstVisitor<C> visitor)
leaveLoop
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitGetCaughtException(CAstNode n, C c, CAstVisitor<C> visitor)
visitGetCaughtException
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveGetCaughtException(CAstNode n, C c, CAstVisitor<C> visitor)
leaveGetCaughtException
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitThis(CAstNode n, C c, CAstVisitor<C> visitor)
visitThis
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveThis(CAstNode n, C c, CAstVisitor<C> visitor)
leaveThis
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitSuper(CAstNode n, C c, CAstVisitor<C> visitor)
visitSuper
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveSuper(CAstNode n, C c, CAstVisitor<C> visitor)
leaveSuper
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitCall(CAstNode n, C c, CAstVisitor<C> visitor)
visitCall
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveCall(CAstNode n, C c, CAstVisitor<C> visitor)
leaveCall
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitVar(CAstNode n, C c, CAstVisitor<C> visitor)
visitVar
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveVar(CAstNode n, C c, CAstVisitor<C> visitor)
leaveVar
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitConstant(CAstNode n, C c, CAstVisitor<C> visitor)
visitConstant
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveConstant(CAstNode n, C c, CAstVisitor<C> visitor)
leaveConstant
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitBinaryExpr(CAstNode n, C c, CAstVisitor<C> visitor)
visitBinaryExpr
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveBinaryExpr(CAstNode n, C c, CAstVisitor<C> visitor)
leaveBinaryExpr
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitUnaryExpr(CAstNode n, C c, CAstVisitor<C> visitor)
visitUnaryExpr
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveUnaryExpr(CAstNode n, C c, CAstVisitor<C> visitor)
leaveUnaryExpr
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitArrayLength(CAstNode n, C c, CAstVisitor<C> visitor)
visitArrayLength
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveArrayLength(CAstNode n, C c, CAstVisitor<C> visitor)
leaveArrayLength
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitArrayRef(CAstNode n, C c, CAstVisitor<C> visitor)
visitArrayRef
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveArrayRef(CAstNode n, C c, CAstVisitor<C> visitor)
leaveArrayRef
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitDeclStmt(CAstNode n, C c, CAstVisitor<C> visitor)
visitDeclStmt
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveDeclStmt(CAstNode n, C c, CAstVisitor<C> visitor)
leaveDeclStmt
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitReturn(CAstNode n, C c, CAstVisitor<C> visitor)
visitReturn
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveReturn(CAstNode n, C c, CAstVisitor<C> visitor)
leaveReturn
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitIfgoto(CAstNode n, C c, CAstVisitor<C> visitor)
visitIfgoto
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveIfgoto(CAstNode n, C c, CAstVisitor<C> visitor)
leaveIfgoto
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitGoto(CAstNode n, C c, CAstVisitor<C> visitor)
visitGoto
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveGoto(CAstNode n, C c, CAstVisitor<C> visitor)
leaveGoto
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitLabelStmt(CAstNode n, C c, CAstVisitor<C> visitor)
visitLabelStmt
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveLabelStmt(CAstNode n, C c, CAstVisitor<C> visitor)
leaveLabelStmt
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitIfStmt(CAstNode n, C c, CAstVisitor<C> visitor)
visitIfStmt
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveIfStmtCondition(CAstNode n, C c, CAstVisitor<C> visitor)
leaveIfStmtCondition
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveIfStmtTrueClause(CAstNode n, C c, CAstVisitor<C> visitor)
leaveIfStmtTrueClause
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveIfStmt(CAstNode n, C c, CAstVisitor<C> visitor)
leaveIfStmt
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitIfExpr(CAstNode n, C c, CAstVisitor<C> visitor)
visitIfExpr
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveIfExprCondition(CAstNode n, C c, CAstVisitor<C> visitor)
leaveIfExprCondition
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveIfExprTrueClause(CAstNode n, C c, CAstVisitor<C> visitor)
leaveIfExprTrueClause
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveIfExpr(CAstNode n, C c, CAstVisitor<C> visitor)
leaveIfExpr
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitNew(CAstNode n, C c, CAstVisitor<C> visitor)
visitNew
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveNew(CAstNode n, C c, CAstVisitor<C> visitor)
leaveNew
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitObjectLiteral(CAstNode n, C c, CAstVisitor<C> visitor)
visitObjectLiteral
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveObjectLiteralFieldInit(CAstNode n, int i, C c, CAstVisitor<C> visitor)
leaveObjectLiteralFieldInit
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processi
- the field position that was initializedc
- a visitor-specific contextprotected void leaveObjectLiteral(CAstNode n, C c, CAstVisitor<C> visitor)
leaveObjectLiteral
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitArrayLiteral(CAstNode n, C c, CAstVisitor<C> visitor)
visitArrayLiteral
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveArrayLiteralObject(CAstNode n, C c, CAstVisitor<C> visitor)
leaveArrayLiteralObject
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveArrayLiteralInitElement(CAstNode n, int i, C c, CAstVisitor<C> visitor)
leaveArrayLiteralInitElement
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processi
- the index that was initializedc
- a visitor-specific contextprotected void leaveArrayLiteral(CAstNode n, C c, CAstVisitor<C> visitor)
leaveArrayLiteral
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitObjectRef(CAstNode n, C c, CAstVisitor<C> visitor)
visitObjectRef
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveObjectRef(CAstNode n, C c, CAstVisitor<C> visitor)
leaveObjectRef
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextpublic boolean visitAssign(CAstNode n, C c, CAstVisitor<C> visitor)
visitAssign
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextpublic void leaveAssign(CAstNode n, C c, CAstVisitor<C> visitor)
leaveAssign
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitArrayRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor)
visitArrayRefAssign
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processc
- a visitor-specific contextprotected void leaveArrayRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor)
leaveArrayRefAssign
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processc
- a visitor-specific contextprotected boolean visitArrayRefAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor)
visitArrayRefAssignOp
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processpre
- whether the value before the operation should be usedc
- a visitor-specific contextprotected void leaveArrayRefAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor)
leaveArrayRefAssignOp
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processpre
- whether the value before the operation should be usedc
- a visitor-specific contextprotected boolean visitObjectRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor)
visitObjectRefAssign
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processc
- a visitor-specific contextprotected void leaveObjectRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor)
leaveObjectRefAssign
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processc
- a visitor-specific contextprotected boolean visitObjectRefAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor)
visitObjectRefAssignOp
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processpre
- whether the value before the operation should be usedc
- a visitor-specific contextprotected void leaveObjectRefAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor)
leaveObjectRefAssignOp
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processpre
- whether the value before the operation should be usedc
- a visitor-specific contextprotected boolean visitBlockExprAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor)
visitBlockExprAssign
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processc
- a visitor-specific contextprotected void leaveBlockExprAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor)
leaveBlockExprAssign
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processc
- a visitor-specific contextprotected boolean visitBlockExprAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor)
visitBlockExprAssignOp
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processpre
- whether the value before the operation should be usedc
- a visitor-specific contextprotected void leaveBlockExprAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor)
leaveBlockExprAssignOp
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processpre
- whether the value before the operation should be usedc
- a visitor-specific contextprotected boolean visitVarAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor)
visitVarAssign
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processc
- a visitor-specific contextprotected void leaveVarAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor)
leaveVarAssign
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processc
- a visitor-specific contextprotected boolean visitVarAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor)
visitVarAssignOp
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processpre
- whether the value before the operation should be usedc
- a visitor-specific contextprotected void leaveVarAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor)
leaveVarAssignOp
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the LHS node to processv
- the RHS node to processa
- the assignment node to processpre
- whether the value before the operation should be usedc
- a visitor-specific contextprotected boolean visitSwitch(CAstNode n, C c, CAstVisitor<C> visitor)
visitSwitch
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveSwitchValue(CAstNode n, C c, CAstVisitor<C> visitor)
leaveSwitchValue
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveSwitch(CAstNode n, C c, CAstVisitor<C> visitor)
leaveSwitch
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitThrow(CAstNode n, C c, CAstVisitor<C> visitor)
visitThrow
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveThrow(CAstNode n, C c, CAstVisitor<C> visitor)
leaveThrow
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitCatch(CAstNode n, C c, CAstVisitor<C> visitor)
visitCatch
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveCatch(CAstNode n, C c, CAstVisitor<C> visitor)
leaveCatch
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitUnwind(CAstNode n, C c, CAstVisitor<C> visitor)
visitUnwind
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveUnwind(CAstNode n, C c, CAstVisitor<C> visitor)
leaveUnwind
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitTry(CAstNode n, C c, CAstVisitor<C> visitor)
visitTry
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveTryBlock(CAstNode n, C c, CAstVisitor<C> visitor)
leaveTryBlock
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveTry(CAstNode n, C c, CAstVisitor<C> visitor)
leaveTry
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitEmpty(CAstNode n, C c, CAstVisitor<C> visitor)
visitEmpty
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveEmpty(CAstNode n, C c, CAstVisitor<C> visitor)
leaveEmpty
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitPrimitive(CAstNode n, C c, CAstVisitor<C> visitor)
visitPrimitive
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leavePrimitive(CAstNode n, C c, CAstVisitor<C> visitor)
leavePrimitive
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitVoid(CAstNode n, C c, CAstVisitor<C> visitor)
visitVoid
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveVoid(CAstNode n, C c, CAstVisitor<C> visitor)
leaveVoid
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitCast(CAstNode n, C c, CAstVisitor<C> visitor)
visitCast
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveCast(CAstNode n, C c, CAstVisitor<C> visitor)
leaveCast
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitInstanceOf(CAstNode n, C c, CAstVisitor<C> visitor)
visitInstanceOf
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveInstanceOf(CAstNode n, C c, CAstVisitor<C> visitor)
leaveInstanceOf
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected boolean visitSpecialParentScope(CAstNode n, C c, CAstVisitor<C> visitor)
visitSpecialParentScope
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific contextprotected void leaveSpecialParentScope(CAstNode n, C c, CAstVisitor<C> visitor)
leaveSpecialParentScope
in class CAstVisitor<C extends CAstVisitor.Context>
n
- the node to processc
- a visitor-specific context