Class DelegatingCAstVisitor<C extends CAstVisitor.Context>
java.lang.Object
com.ibm.wala.cast.tree.visit.CAstVisitor<C>
com.ibm.wala.cast.tree.visit.DelegatingCAstVisitor<C>
Extend
CAstVisitor<C> to delegate unimplemented functionality to another visitor.
Needed to work around Java's retarded multiple inheritance rules. TODO: document me.- Author:
- Igor Peshansky
-
Nested Class Summary
Nested classes/interfaces inherited from class CAstVisitor
CAstVisitor.Context -
Field Summary
Fields inherited from class CAstVisitor
currentPosition, DEBUG -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDelegatingCAstVisitor(CAstVisitor<C> delegate) DelegatingCAstVisitor<C>constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final CAstVisitor<C> delegate()protected booleandoVisit(CAstNode n, C context, CAstVisitor<C> visitor) Node processing hook; sub-classes are expected to override if they introduce new node types.protected booleandoVisitEntity(CAstEntity n, C context, CAstVisitor<C> visitor) Entity processing hook; sub-classes are expected to override if they introduce new entity types.protected booleanenterEntity(CAstEntity n, C context, CAstVisitor<C> visitor) Enter the entity visitor.protected booleanenterNode(CAstNode n, C c, CAstVisitor<C> visitor) Enter the node visitor.protected CAstEntitygetParent(CAstEntity entity) Get the parent entity for a given entity.protected voidleaveArrayLength(CAstNode n, C c, CAstVisitor<C> visitor) Leave an ArrayLength node.protected voidleaveArrayLiteral(CAstNode n, C c, CAstVisitor<C> visitor) Leave a ArrayLiteral node.protected voidleaveArrayLiteralInitElement(CAstNode n, int i, C c, CAstVisitor<C> visitor) Visit an ArrayLiteral node after processing the {i}th element initializer.protected voidleaveArrayLiteralObject(CAstNode n, C c, CAstVisitor<C> visitor) Visit an ArrayLiteral node after processing the array object.protected voidleaveArrayRef(CAstNode n, C c, CAstVisitor<C> visitor) Leave an ArrayRef node.protected voidleaveArrayRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit an ArrayRef Assignment node after visiting the LHS.protected voidleaveArrayRefAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor) Visit an ArrayRef Op/Assignment node after visiting the LHS.voidleaveAssign(CAstNode n, C c, CAstVisitor<C> visitor) Leave an Assign node.protected voidleaveBinaryExpr(CAstNode n, C c, CAstVisitor<C> visitor) Leave a BinaryExpr node.protected voidleaveBlockExpr(CAstNode n, C c, CAstVisitor<C> visitor) Leave a BlockExpr node.protected voidleaveBlockExprAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit a BlockExpr Assignment node after visiting the LHS.protected voidleaveBlockExprAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor) Visit a BlockExpr Op/Assignment node after visiting the LHS.protected voidleaveBlockStmt(CAstNode n, C c, CAstVisitor<C> visitor) Leave a BlockStmt node.protected voidleaveCall(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Call node.protected voidleaveCast(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Cast node.protected voidleaveCatch(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Catch node.protected voidleaveClassStmt(CAstNode n, C c, CAstVisitor<C> visitor) Leave a FunctionStmt node.protected voidleaveConstant(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Constant node.protected voidleaveDeclStmt(CAstNode n, C c, CAstVisitor<C> visitor) Leave a DeclStmt node.protected voidleaveEmpty(CAstNode n, C c, CAstVisitor<C> visitor) Leave an Empty node.voidleaveEntity(CAstEntity n, C context, CAstVisitor<C> visitor) Leave any entity.protected voidleaveFieldEntity(CAstEntity n, C context, CAstVisitor<C> visitor) Leave a Field entity.protected voidleaveFileEntity(CAstEntity n, C context, C fileContext, CAstVisitor<C> visitor) Leave a File entity.protected voidleaveFunctionEntity(CAstEntity n, C context, C codeContext, CAstVisitor<C> visitor) Leave a Function entity.protected voidleaveFunctionExpr(CAstNode n, C c, CAstVisitor<C> visitor) Leave a FunctionExpr node.protected voidleaveFunctionStmt(CAstNode n, C c, CAstVisitor<C> visitor) Leave a FunctionStmt node.protected voidleaveGetCaughtException(CAstNode n, C c, CAstVisitor<C> visitor) Leave a GetCaughtException node.protected voidleaveGoto(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Goto node.protected voidleaveIfExpr(CAstNode n, C c, CAstVisitor<C> visitor) Leave an IfExpr node.protected voidleaveIfExprCondition(CAstNode n, C c, CAstVisitor<C> visitor) Visit an IfExpr node after processing the condition.protected voidleaveIfExprTrueClause(CAstNode n, C c, CAstVisitor<C> visitor) Visit an IfExpr node after processing the true clause.protected voidleaveIfgoto(CAstNode n, C c, CAstVisitor<C> visitor) Leave an Ifgoto node.protected voidleaveIfStmt(CAstNode n, C c, CAstVisitor<C> visitor) Leave an IfStmt node.protected voidleaveIfStmtCondition(CAstNode n, C c, CAstVisitor<C> visitor) Visit an IfStmt node after processing the condition.protected voidleaveIfStmtTrueClause(CAstNode n, C c, CAstVisitor<C> visitor) Visit an IfStmt node after processing the true clause.protected voidleaveInstanceOf(CAstNode n, C c, CAstVisitor<C> visitor) Leave an InstanceOf node.protected voidleaveLabelStmt(CAstNode n, C c, CAstVisitor<C> visitor) Leave a LabelStmt node.protected voidleaveLocalScope(CAstNode n, C c, CAstVisitor<C> visitor) Leave a LocalScope node.protected voidleaveLoop(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Loop node.protected voidleaveLoopHeader(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Loop node after processing the loop header.protected voidleaveNew(CAstNode n, C c, CAstVisitor<C> visitor) Leave a New node.voidleaveNode(CAstNode n, C c, CAstVisitor<C> visitor) Leave any node.protected voidleaveObjectLiteral(CAstNode n, C c, CAstVisitor<C> visitor) Leave an ObjectLiteral node.protected voidleaveObjectLiteralFieldInit(CAstNode n, int i, C c, CAstVisitor<C> visitor) Visit an ObjectLiteral node after processing the {i}th field initializer.protected voidleaveObjectRef(CAstNode n, C c, CAstVisitor<C> visitor) Leave an ObjectRef node.protected voidleaveObjectRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit an ObjectRef Assignment node after visiting the LHS.protected voidleaveObjectRefAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor) Visit an ObjectRef Op/Assignment node after visiting the LHS.protected voidleavePrimitive(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Primitive node.protected voidleaveReturn(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Return node.protected voidleaveScriptEntity(CAstEntity n, C context, C codeContext, CAstVisitor<C> visitor) Leave a Script entity.protected voidleaveSpecialParentScope(CAstNode n, C c, CAstVisitor<C> visitor) Leave a LocalScope node.protected voidleaveSuper(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Super node.protected voidleaveSwitch(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Switch node.protected voidleaveSwitchValue(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Switch node after processing the switch value.protected voidleaveThis(CAstNode n, C c, CAstVisitor<C> visitor) Leave a This node.protected voidleaveThrow(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Throw node.protected voidleaveTry(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Try node.protected voidleaveTryBlock(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Try node after processing the try block.protected voidleaveTypeEntity(CAstEntity n, C context, C typeContext, CAstVisitor<C> visitor) Leave a Type entity.protected voidleaveUnaryExpr(CAstNode n, C c, CAstVisitor<C> visitor) Leave a UnaryExpr node.protected voidleaveUnwind(CAstNode n, C c, CAstVisitor<C> visitor) Leave an Unwind node.protected voidleaveVar(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Var node.protected voidleaveVarAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit a Var Assignment node after visiting the LHS.protected voidleaveVarAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor) Visit a Var Op/Assignment node after visiting the LHS.protected voidleaveVoid(CAstNode n, C c, CAstVisitor<C> visitor) Leave a Void node.protected CmakeCodeContext(C context, CAstEntity n) Construct a context for a Code entity or delegate by default.protected CmakeFileContext(C context, CAstEntity n) Construct a context for a File entity or delegate by default.protected CmakeLocalContext(C context, CAstNode n) Construct a context for a LocalScope node or delegate by default.protected CmakeTypeContext(C context, CAstEntity n) Construct a context for a Type entity or delegate by default.protected CmakeUnwindContext(C context, CAstNode n, CAstVisitor<C> visitor) Construct a context for an Unwind node or delegate by default.protected voidpostProcessEntity(CAstEntity n, C context, CAstVisitor<C> visitor) Post-process an entity after visiting it.protected voidpostProcessNode(CAstNode n, C c, CAstVisitor<C> visitor) Post-process a node after visiting it.protected voidsetParent(CAstEntity entity, CAstEntity parent) Set the parent entity for a given entity.protected booleanvisitArrayLength(CAstNode n, C c, CAstVisitor<C> visitor) Visit an ArrayLength node.protected booleanvisitArrayLiteral(CAstNode n, C c, CAstVisitor<C> visitor) Visit an ArrayLiteral node.protected booleanvisitArrayRef(CAstNode n, C c, CAstVisitor<C> visitor) Visit an ArrayRef node.protected booleanvisitArrayRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit an ArrayRef Assignment node after visiting the RHS.protected booleanvisitArrayRefAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor) Visit an ArrayRef Op/Assignment node after visiting the RHS.booleanvisitAssign(CAstNode n, C c, CAstVisitor<C> visitor) Visit an Assign node.protected booleanvisitBinaryExpr(CAstNode n, C c, CAstVisitor<C> visitor) Visit a BinaryExpr node.protected booleanvisitBlockExpr(CAstNode n, C c, CAstVisitor<C> visitor) Visit a BlockExpr node.protected booleanvisitBlockExprAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit a BlockExpr Assignment node after visiting the RHS.protected booleanvisitBlockExprAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor) Visit a BlockExpr Op/Assignment node after visiting the RHS.protected booleanvisitBlockStmt(CAstNode n, C c, CAstVisitor<C> visitor) Visit a BlockStmt node.protected booleanvisitCall(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Call node.protected booleanvisitCast(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Cast node.protected booleanvisitCatch(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Catch node.protected booleanvisitClassStmt(CAstNode n, C c, CAstVisitor<C> visitor) Visit a ClassStmt node.protected booleanvisitConstant(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Constant node.protected booleanvisitDeclStmt(CAstNode n, C c, CAstVisitor<C> visitor) Visit a DeclStmt node.protected booleanvisitEmpty(CAstNode n, C c, CAstVisitor<C> visitor) Visit an Empty node.booleanvisitEntity(CAstEntity n, C context, CAstVisitor<C> visitor) Visit any entity.protected booleanvisitFieldEntity(CAstEntity n, C context, CAstVisitor<C> visitor) Visit a Field entity.protected booleanvisitFileEntity(CAstEntity n, C context, C fileContext, CAstVisitor<C> visitor) Visit a File entity.protected booleanvisitFunctionEntity(CAstEntity n, C context, C codeContext, CAstVisitor<C> visitor) Visit a Function entity.protected booleanvisitFunctionExpr(CAstNode n, C c, CAstVisitor<C> visitor) Visit a FunctionExpr node.protected booleanvisitFunctionStmt(CAstNode n, C c, CAstVisitor<C> visitor) Visit a FunctionStmt node.protected booleanvisitGetCaughtException(CAstNode n, C c, CAstVisitor<C> visitor) Visit a GetCaughtException node.protected booleanvisitGoto(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Goto node.protected booleanvisitIfExpr(CAstNode n, C c, CAstVisitor<C> visitor) Visit an IfExpr node.protected booleanvisitIfgoto(CAstNode n, C c, CAstVisitor<C> visitor) Visit an Ifgoto node.protected booleanvisitIfStmt(CAstNode n, C c, CAstVisitor<C> visitor) Visit an IfStmt node.protected booleanvisitInstanceOf(CAstNode n, C c, CAstVisitor<C> visitor) Visit an InstanceOf node.protected booleanvisitLabelStmt(CAstNode n, C c, CAstVisitor<C> visitor) Visit a LabelStmt node.protected booleanvisitLocalScope(CAstNode n, C c, CAstVisitor<C> visitor) Visit a LocalScope node.protected booleanvisitLoop(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Loop node.protected booleanvisitNew(CAstNode n, C c, CAstVisitor<C> visitor) Visit a New node.booleanvisitNode(CAstNode n, C c, CAstVisitor<C> visitor) Visit any node.protected booleanvisitObjectLiteral(CAstNode n, C c, CAstVisitor<C> visitor) Visit an ObjectLiteral node.protected booleanvisitObjectRef(CAstNode n, C c, CAstVisitor<C> visitor) Visit an ObjectRef node.protected booleanvisitObjectRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit an ObjectRef Assignment node after visiting the RHS.protected booleanvisitObjectRefAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor) Visit an ObjectRef Op/Assignment node after visiting the RHS.protected booleanvisitPrimitive(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Primitive node.protected booleanvisitReturn(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Return node.protected booleanvisitScriptEntity(CAstEntity n, C context, C codeContext, CAstVisitor<C> visitor) Visit a Script entity.protected booleanvisitSpecialParentScope(CAstNode n, C c, CAstVisitor<C> visitor) Visit a LocalScope node.protected booleanvisitSuper(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Super node.protected booleanvisitSwitch(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Switch node.protected booleanvisitThis(CAstNode n, C c, CAstVisitor<C> visitor) Visit a This node.protected booleanvisitThrow(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Throw node.protected booleanvisitTry(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Try node.protected booleanvisitTypeEntity(CAstEntity n, C context, C typeContext, CAstVisitor<C> visitor) Visit a Type entity.protected booleanvisitUnaryExpr(CAstNode n, C c, CAstVisitor<C> visitor) Visit a UnaryExpr node.protected booleanvisitUnwind(CAstNode n, C c, CAstVisitor<C> visitor) Visit an Unwind node.protected booleanvisitVar(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Var node.protected booleanvisitVarAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit a Var Assignment node after visiting the RHS.protected booleanvisitVarAssignOp(CAstNode n, CAstNode v, CAstNode a, boolean pre, C c, CAstVisitor<C> visitor) Visit a Var Op/Assignment node after visiting the RHS.protected booleanvisitVoid(CAstNode n, C c, CAstVisitor<C> visitor) Visit a Void node.Methods inherited from class CAstVisitor
doVisitArrayRefNode, doVisitAssignNodes, getCodeContext, getCurrentPosition, leaveArrayLiteralAssign, leaveAssert, leaveEachElementGet, leaveEachElementHasNext, leaveEcho, leaveForIn, leaveGlobalEntity, leaveInclude, leaveIsDefinedExpr, leaveMacroEntity, leaveMacroVar, leaveObjectLiteralAssign, leaveTypeLiteralExpr, leaveYield, makeSpecialParentContext, visit, visitAllChildren, visitArrayLiteralAssign, visitAssert, visitAssignNodes, visitChildren, visitEachElementGet, visitEachElementHasNext, visitEcho, visitEntities, visitForIn, visitGlobalEntity, visitInclude, visitIsDefinedExpr, visitMacroEntity, visitMacroVar, visitObjectLiteralAssign, visitScopedEntities, visitScopedEntities, visitTypeLiteralExpr, visitYield
-
Constructor Details
-
DelegatingCAstVisitor
DelegatingCAstVisitor<C>constructor. Needs to have a valid (non-null) delegate visitor.- Parameters:
delegate- the visitor to delegate to for default implementation
-
-
Method Details
-
makeFileContext
Construct a context for a File entity or delegate by default.- Overrides:
makeFileContextin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
context- a visitor-specific context in which this file was visitedn- the file entity
-
makeTypeContext
Construct a context for a Type entity or delegate by default.- Overrides:
makeTypeContextin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
context- a visitor-specific context in which this type was visitedn- the type entity
-
makeCodeContext
Construct a context for a Code entity or delegate by default.- Overrides:
makeCodeContextin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
context- a visitor-specific context in which the code was visitedn- the code entity
-
makeLocalContext
Construct a context for a LocalScope node or delegate by default.- Overrides:
makeLocalContextin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
context- a visitor-specific context in which the local scope was visitedn- the local scope node
-
makeUnwindContext
Construct a context for an Unwind node or delegate by default.- Overrides:
makeUnwindContextin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
context- a visitor-specific context in which the unwind was visitedn- the unwind node
-
getParent
Get the parent entity for a given entity.- Overrides:
getParentin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
entity- the child entity- Returns:
- the parent entity for the given entity
-
setParent
Set the parent entity for a given entity.- Overrides:
setParentin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
entity- the child entityparent- the parent entity
-
delegate
-
doVisitEntity
Entity processing hook; sub-classes are expected to override if they introduce new entity types. Should invoke super.doVisitEntity() for unprocessed entities.- Overrides:
doVisitEntityin classCAstVisitor<C extends CAstVisitor.Context>- Returns:
- true if entity was handled
-
enterEntity
Enter the entity visitor.- Overrides:
enterEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific context- Returns:
- true if no further processing is needed
-
postProcessEntity
Post-process an entity after visiting it.- Overrides:
postProcessEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific context
-
visitEntity
Visit any entity. Override only this to change behavior for all entities.- Overrides:
visitEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveEntity
Leave any entity. Override only this to change behavior for all entities.- Overrides:
leaveEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific context
-
visitFileEntity
Visit a File entity.- Overrides:
visitFileEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific contextfileContext- a visitor-specific context for this file- Returns:
- true if no further processing is needed
-
leaveFileEntity
Leave a File entity.- Overrides:
leaveFileEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific contextfileContext- a visitor-specific context for this file
-
visitFieldEntity
Visit a Field entity.- Overrides:
visitFieldEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveFieldEntity
Leave a Field entity.- Overrides:
leaveFieldEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific context
-
visitTypeEntity
Visit a Type entity.- Overrides:
visitTypeEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific contexttypeContext- a visitor-specific context for this type- Returns:
- true if no further processing is needed
-
leaveTypeEntity
Leave a Type entity.- Overrides:
leaveTypeEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific contexttypeContext- a visitor-specific context for this type
-
visitFunctionEntity
protected boolean visitFunctionEntity(CAstEntity n, C context, C codeContext, CAstVisitor<C> visitor) Visit a Function entity.- Overrides:
visitFunctionEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific contextcodeContext- a visitor-specific context for this function- Returns:
- true if no further processing is needed
-
leaveFunctionEntity
Leave a Function entity.- Overrides:
leaveFunctionEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific contextcodeContext- a visitor-specific context for this function
-
visitScriptEntity
Visit a Script entity.- Overrides:
visitScriptEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific contextcodeContext- a visitor-specific context for this script- Returns:
- true if no further processing is needed
-
leaveScriptEntity
Leave a Script entity.- Overrides:
leaveScriptEntityin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the entity to processcontext- a visitor-specific contextcodeContext- a visitor-specific context for this script
-
doVisit
Node processing hook; sub-classes are expected to override if they introduce new node types. Should invoke super.doVisit() for unprocessed nodes.- Overrides:
doVisitin classCAstVisitor<C extends CAstVisitor.Context>- Returns:
- true if node was handled
-
enterNode
Enter the node visitor.- Overrides:
enterNodein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
postProcessNode
Post-process a node after visiting it.- Overrides:
postProcessNodein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitNode
Visit any node. Override only this to change behavior for all nodes.- Overrides:
visitNodein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveNode
Leave any node. Override only this to change behavior for all nodes.- Overrides:
leaveNodein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitFunctionExpr
Visit a FunctionExpr node.- Overrides:
visitFunctionExprin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveFunctionExpr
Leave a FunctionExpr node.- Overrides:
leaveFunctionExprin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitFunctionStmt
Visit a FunctionStmt node.- Overrides:
visitFunctionStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveFunctionStmt
Leave a FunctionStmt node.- Overrides:
leaveFunctionStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitClassStmt
Visit a ClassStmt node.- Overrides:
visitClassStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveClassStmt
Leave a FunctionStmt node.- Overrides:
leaveClassStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitLocalScope
Visit a LocalScope node.- Overrides:
visitLocalScopein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveLocalScope
Leave a LocalScope node.- Overrides:
leaveLocalScopein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitBlockExpr
Visit a BlockExpr node.- Overrides:
visitBlockExprin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveBlockExpr
Leave a BlockExpr node.- Overrides:
leaveBlockExprin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitBlockStmt
Visit a BlockStmt node.- Overrides:
visitBlockStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveBlockStmt
Leave a BlockStmt node.- Overrides:
leaveBlockStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitLoop
Visit a Loop node.- Overrides:
visitLoopin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveLoopHeader
Visit a Loop node after processing the loop header.- Overrides:
leaveLoopHeaderin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
leaveLoop
Leave a Loop node.- Overrides:
leaveLoopin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitGetCaughtException
Visit a GetCaughtException node.- Overrides:
visitGetCaughtExceptionin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveGetCaughtException
Leave a GetCaughtException node.- Overrides:
leaveGetCaughtExceptionin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitThis
Visit a This node.- Overrides:
visitThisin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveThis
Leave a This node.- Overrides:
leaveThisin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitSuper
Visit a Super node.- Overrides:
visitSuperin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveSuper
Leave a Super node.- Overrides:
leaveSuperin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitCall
Visit a Call node.- Overrides:
visitCallin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveCall
Leave a Call node.- Overrides:
leaveCallin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitVar
Visit a Var node.- Overrides:
visitVarin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveVar
Leave a Var node.- Overrides:
leaveVarin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitConstant
Visit a Constant node.- Overrides:
visitConstantin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveConstant
Leave a Constant node.- Overrides:
leaveConstantin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitBinaryExpr
Visit a BinaryExpr node.- Overrides:
visitBinaryExprin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveBinaryExpr
Leave a BinaryExpr node.- Overrides:
leaveBinaryExprin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitUnaryExpr
Visit a UnaryExpr node.- Overrides:
visitUnaryExprin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveUnaryExpr
Leave a UnaryExpr node.- Overrides:
leaveUnaryExprin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitArrayLength
Visit an ArrayLength node.- Overrides:
visitArrayLengthin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveArrayLength
Leave an ArrayLength node.- Overrides:
leaveArrayLengthin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitArrayRef
Visit an ArrayRef node.- Overrides:
visitArrayRefin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveArrayRef
Leave an ArrayRef node.- Overrides:
leaveArrayRefin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitDeclStmt
Visit a DeclStmt node.- Overrides:
visitDeclStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveDeclStmt
Leave a DeclStmt node.- Overrides:
leaveDeclStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitReturn
Visit a Return node.- Overrides:
visitReturnin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveReturn
Leave a Return node.- Overrides:
leaveReturnin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitIfgoto
Visit an Ifgoto node.- Overrides:
visitIfgotoin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveIfgoto
Leave an Ifgoto node.- Overrides:
leaveIfgotoin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitGoto
Visit a Goto node.- Overrides:
visitGotoin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveGoto
Leave a Goto node.- Overrides:
leaveGotoin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitLabelStmt
Visit a LabelStmt node.- Overrides:
visitLabelStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveLabelStmt
Leave a LabelStmt node.- Overrides:
leaveLabelStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitIfStmt
Visit an IfStmt node.- Overrides:
visitIfStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveIfStmtCondition
Visit an IfStmt node after processing the condition.- Overrides:
leaveIfStmtConditionin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
leaveIfStmtTrueClause
Visit an IfStmt node after processing the true clause.- Overrides:
leaveIfStmtTrueClausein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
leaveIfStmt
Leave an IfStmt node.- Overrides:
leaveIfStmtin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitIfExpr
Visit an IfExpr node.- Overrides:
visitIfExprin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveIfExprCondition
Visit an IfExpr node after processing the condition.- Overrides:
leaveIfExprConditionin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
leaveIfExprTrueClause
Visit an IfExpr node after processing the true clause.- Overrides:
leaveIfExprTrueClausein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
leaveIfExpr
Leave an IfExpr node.- Overrides:
leaveIfExprin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitNew
Visit a New node.- Overrides:
visitNewin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveNew
Leave a New node.- Overrides:
leaveNewin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitObjectLiteral
Visit an ObjectLiteral node.- Overrides:
visitObjectLiteralin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveObjectLiteralFieldInit
Visit an ObjectLiteral node after processing the {i}th field initializer.- Overrides:
leaveObjectLiteralFieldInitin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processi- the field position that was initializedc- a visitor-specific context
-
leaveObjectLiteral
Leave an ObjectLiteral node.- Overrides:
leaveObjectLiteralin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitArrayLiteral
Visit an ArrayLiteral node.- Overrides:
visitArrayLiteralin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveArrayLiteralObject
Visit an ArrayLiteral node after processing the array object.- Overrides:
leaveArrayLiteralObjectin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
leaveArrayLiteralInitElement
Visit an ArrayLiteral node after processing the {i}th element initializer.- Overrides:
leaveArrayLiteralInitElementin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processi- the index that was initializedc- a visitor-specific context
-
leaveArrayLiteral
Leave a ArrayLiteral node.- Overrides:
leaveArrayLiteralin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitObjectRef
Visit an ObjectRef node.- Overrides:
visitObjectRefin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveObjectRef
Leave an ObjectRef node.- Overrides:
leaveObjectRefin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitAssign
Visit an Assign node. Override only this to change behavior for all assignment nodes.- Overrides:
visitAssignin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveAssign
Leave an Assign node. Override only this to change behavior for all assignment nodes.- Overrides:
leaveAssignin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitArrayRefAssign
protected boolean visitArrayRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit an ArrayRef Assignment node after visiting the RHS.- Overrides:
visitArrayRefAssignin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the LHS node to processv- the RHS node to processa- the assignment node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveArrayRefAssign
Visit an ArrayRef Assignment node after visiting the LHS.- Overrides:
leaveArrayRefAssignin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the LHS node to processv- the RHS node to processa- the assignment node to processc- a visitor-specific context
-
visitArrayRefAssignOp
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.- Overrides:
visitArrayRefAssignOpin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
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 context- Returns:
- true if no further processing is needed
-
leaveArrayRefAssignOp
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.- Overrides:
leaveArrayRefAssignOpin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
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 context
-
visitObjectRefAssign
protected boolean visitObjectRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit an ObjectRef Assignment node after visiting the RHS.- Overrides:
visitObjectRefAssignin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the LHS node to processv- the RHS node to processa- the assignment node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveObjectRefAssign
protected void leaveObjectRefAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit an ObjectRef Assignment node after visiting the LHS.- Overrides:
leaveObjectRefAssignin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the LHS node to processv- the RHS node to processa- the assignment node to processc- a visitor-specific context
-
visitObjectRefAssignOp
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.- Overrides:
visitObjectRefAssignOpin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
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 context- Returns:
- true if no further processing is needed
-
leaveObjectRefAssignOp
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.- Overrides:
leaveObjectRefAssignOpin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
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 context
-
visitBlockExprAssign
protected boolean visitBlockExprAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit a BlockExpr Assignment node after visiting the RHS.- Overrides:
visitBlockExprAssignin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the LHS node to processv- the RHS node to processa- the assignment node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveBlockExprAssign
protected void leaveBlockExprAssign(CAstNode n, CAstNode v, CAstNode a, C c, CAstVisitor<C> visitor) Visit a BlockExpr Assignment node after visiting the LHS.- Overrides:
leaveBlockExprAssignin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the LHS node to processv- the RHS node to processa- the assignment node to processc- a visitor-specific context
-
visitBlockExprAssignOp
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.- Overrides:
visitBlockExprAssignOpin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
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 context- Returns:
- true if no further processing is needed
-
leaveBlockExprAssignOp
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.- Overrides:
leaveBlockExprAssignOpin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
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 context
-
visitVarAssign
Visit a Var Assignment node after visiting the RHS.- Overrides:
visitVarAssignin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the LHS node to processv- the RHS node to processa- the assignment node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveVarAssign
Visit a Var Assignment node after visiting the LHS.- Overrides:
leaveVarAssignin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the LHS node to processv- the RHS node to processa- the assignment node to processc- a visitor-specific context
-
visitVarAssignOp
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.- Overrides:
visitVarAssignOpin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
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 context- Returns:
- true if no further processing is needed
-
leaveVarAssignOp
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.- Overrides:
leaveVarAssignOpin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
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 context
-
visitSwitch
Visit a Switch node.- Overrides:
visitSwitchin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveSwitchValue
Visit a Switch node after processing the switch value.- Overrides:
leaveSwitchValuein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
leaveSwitch
Leave a Switch node.- Overrides:
leaveSwitchin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitThrow
Visit a Throw node.- Overrides:
visitThrowin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveThrow
Leave a Throw node.- Overrides:
leaveThrowin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitCatch
Visit a Catch node.- Overrides:
visitCatchin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveCatch
Leave a Catch node.- Overrides:
leaveCatchin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitUnwind
Visit an Unwind node.- Overrides:
visitUnwindin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveUnwind
Leave an Unwind node.- Overrides:
leaveUnwindin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitTry
Visit a Try node.- Overrides:
visitTryin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveTryBlock
Visit a Try node after processing the try block.- Overrides:
leaveTryBlockin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
leaveTry
Leave a Try node.- Overrides:
leaveTryin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitEmpty
Visit an Empty node.- Overrides:
visitEmptyin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveEmpty
Leave an Empty node.- Overrides:
leaveEmptyin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitPrimitive
Visit a Primitive node.- Overrides:
visitPrimitivein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leavePrimitive
Leave a Primitive node.- Overrides:
leavePrimitivein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitVoid
Visit a Void node.- Overrides:
visitVoidin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveVoid
Leave a Void node.- Overrides:
leaveVoidin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitCast
Visit a Cast node.- Overrides:
visitCastin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveCast
Leave a Cast node.- Overrides:
leaveCastin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitInstanceOf
Visit an InstanceOf node.- Overrides:
visitInstanceOfin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveInstanceOf
Leave an InstanceOf node.- Overrides:
leaveInstanceOfin classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-
visitSpecialParentScope
Visit a LocalScope node.- Overrides:
visitSpecialParentScopein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context- Returns:
- true if no further processing is needed
-
leaveSpecialParentScope
Leave a LocalScope node.- Overrides:
leaveSpecialParentScopein classCAstVisitor<C extends CAstVisitor.Context>- Parameters:
n- the node to processc- a visitor-specific context
-