public class DefaultASTVisitor extends ASTVisitor
ASTVisitor
that can be configured to have a default implementation
for all nodes.
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.Constructor and Description |
---|
DefaultASTVisitor() |
DefaultASTVisitor(boolean visitDocTags) |
Modifier and Type | Method and Description |
---|---|
void |
endVisit(AnonymousClassDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(ArrayAccess node)
End of visit the given type-specific AST node.
|
void |
endVisit(ArrayCreation node)
End of visit the given type-specific AST node.
|
void |
endVisit(ArrayInitializer node)
End of visit the given type-specific AST node.
|
void |
endVisit(ArrayName node)
End of visit the given type-specific AST node.
|
void |
endVisit(ArrayType node)
End of visit the given type-specific AST node.
|
void |
endVisit(Assignment node)
End of visit the given type-specific AST node.
|
void |
endVisit(AssignmentName node)
End of visit the given type-specific AST node.
|
void |
endVisit(Block node)
End of visit the given type-specific AST node.
|
void |
endVisit(BlockComment node)
End of visit the given type-specific AST node.
|
void |
endVisit(BooleanLiteral node)
End of visit the given type-specific AST node.
|
void |
endVisit(BreakStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(CatchClause node)
End of visit the given type-specific AST node.
|
void |
endVisit(CharacterLiteral node)
End of visit the given type-specific AST node.
|
void |
endVisit(ClassInstanceCreation node)
End of visit the given type-specific AST node.
|
void |
endVisit(ConditionalExpression node)
End of visit the given type-specific AST node.
|
void |
endVisit(ConstructorInvocation node)
End of visit the given type-specific AST node.
|
void |
endVisit(ContinueStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(DebuggerStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(DoStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(EmptyStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(EnhancedForStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(ExportDeclaration node) |
void |
endVisit(ExpressionStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(FieldAccess node)
End of visit the given type-specific AST node.
|
void |
endVisit(FieldDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(ForInStatement node) |
void |
endVisit(ForOfStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(ForStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(FunctionDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(FunctionDeclarationStatement node) |
void |
endVisit(FunctionExpression node) |
void |
endVisit(FunctionInvocation node)
End of visit the given type-specific AST node.
|
void |
endVisit(FunctionRef node)
End of visit the given type-specific AST node.
|
void |
endVisit(FunctionRefParameter node)
End of visit the given type-specific AST node.
|
void |
endVisit(IfStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(ImportDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(InferredType node) |
void |
endVisit(InfixExpression node)
End of visit the given type-specific AST node.
|
void |
endVisit(Initializer node)
End of visit the given type-specific AST node.
|
void |
endVisit(InstanceofExpression node)
End of visit the given type-specific AST node.
|
void |
endVisit(JavaScriptUnit node)
End of visit the given type-specific AST node.
|
void |
endVisit(JSdoc node)
End of visit the given type-specific AST node.
|
void |
endVisit(LabeledStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(LineComment node)
End of visit the given type-specific AST node.
|
void |
endVisit(ListExpression node) |
void |
endVisit(MemberRef node)
End of visit the given type-specific AST node.
|
void |
endVisit(MetaProperty node)
End of visit the given type-specific AST node.
|
void |
endVisit(ModuleSpecifier node)
End of visit the given type-specific AST node.
|
void |
endVisit(NullLiteral node)
End of visit the given type-specific AST node.
|
void |
endVisit(NumberLiteral node)
End of visit the given type-specific AST node.
|
void |
endVisit(ObjectLiteral node) |
void |
endVisit(ObjectLiteralField node) |
void |
endVisit(ObjectName node)
End of visit the given type-specific AST node.
|
void |
endVisit(PackageDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(ParenthesizedExpression node)
End of visit the given type-specific AST node.
|
void |
endVisit(PostfixExpression node)
End of visit the given type-specific AST node.
|
void |
endVisit(PrefixExpression node)
End of visit the given type-specific AST node.
|
void |
endVisit(PrimitiveType node)
End of visit the given type-specific AST node.
|
void |
endVisit(QualifiedName node)
End of visit the given type-specific AST node.
|
void |
endVisit(QualifiedType node)
End of visit the given type-specific AST node.
|
void |
endVisit(RegularExpressionLiteral node) |
void |
endVisit(RestElementName node)
End of visit the given type-specific AST node.
|
void |
endVisit(ReturnStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(SimpleName node)
End of visit the given type-specific AST node.
|
void |
endVisit(SimpleType node)
End of visit the given type-specific AST node.
|
void |
endVisit(SingleVariableDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(SpreadElement node)
End of visit the given type-specific AST node.
|
void |
endVisit(StringLiteral node)
End of visit the given type-specific AST node.
|
void |
endVisit(SuperConstructorInvocation node)
End of visit the given type-specific AST node.
|
void |
endVisit(SuperFieldAccess node)
End of visit the given type-specific AST node.
|
void |
endVisit(SuperMethodInvocation node)
End of visit the given type-specific AST node.
|
void |
endVisit(SwitchCase node)
End of visit the given type-specific AST node.
|
void |
endVisit(SwitchStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(TagElement node)
End of visit the given type-specific AST node.
|
void |
endVisit(TemplateElement node)
End of visit the given type-specific AST node.
|
void |
endVisit(TemplateLiteral node)
End of visit the given type-specific AST node.
|
void |
endVisit(TextElement node)
End of visit the given type-specific AST node.
|
void |
endVisit(ThisExpression node)
End of visit the given type-specific AST node.
|
void |
endVisit(ThrowStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(TryStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(TypeDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(TypeDeclarationExpression node) |
void |
endVisit(TypeDeclarationStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(TypeLiteral node)
End of visit the given type-specific AST node.
|
void |
endVisit(UndefinedLiteral node) |
void |
endVisit(VariableDeclarationExpression node)
End of visit the given type-specific AST node.
|
void |
endVisit(VariableDeclarationFragment node)
End of visit the given type-specific AST node.
|
void |
endVisit(VariableDeclarationStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(WhileStatement node)
End of visit the given type-specific AST node.
|
void |
endVisit(WithStatement node) |
void |
endVisit(YieldExpression node)
End of visit the given type-specific AST node.
|
protected void |
endVisitNode(ASTNode node) |
boolean |
visit(AnonymousClassDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(ArrayAccess node)
Visits the given type-specific AST node.
|
boolean |
visit(ArrayCreation node)
Visits the given type-specific AST node.
|
boolean |
visit(ArrayInitializer node)
Visits the given type-specific AST node.
|
boolean |
visit(ArrayName node)
Visits the given type-specific AST node.
|
boolean |
visit(ArrayType node)
Visits the given type-specific AST node.
|
boolean |
visit(ArrowFunctionExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(Assignment node)
Visits the given type-specific AST node.
|
boolean |
visit(AssignmentName node)
Visits the given type-specific AST node.
|
boolean |
visit(Block node)
Visits the given type-specific AST node.
|
boolean |
visit(BlockComment node)
Visits the given type-specific AST node.
|
boolean |
visit(BooleanLiteral node)
Visits the given type-specific AST node.
|
boolean |
visit(BreakStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(CatchClause node)
Visits the given type-specific AST node.
|
boolean |
visit(CharacterLiteral node)
Visits the given type-specific AST node.
|
boolean |
visit(ClassInstanceCreation node)
Visits the given type-specific AST node.
|
boolean |
visit(ConditionalExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(ConstructorInvocation node)
Visits the given type-specific AST node.
|
boolean |
visit(ContinueStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(DebuggerStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(DoStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(EmptyStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(EnhancedForStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(ExportDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(ExpressionStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(FieldAccess node)
Visits the given type-specific AST node.
|
boolean |
visit(FieldDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(ForInStatement node) |
boolean |
visit(ForOfStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(ForStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(FunctionDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(FunctionDeclarationStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(FunctionExpression node) |
boolean |
visit(FunctionInvocation node)
Visits the given type-specific AST node.
|
boolean |
visit(FunctionRef node)
Visits the given type-specific AST node.
|
boolean |
visit(FunctionRefParameter node)
Visits the given type-specific AST node.
|
boolean |
visit(IfStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(ImportDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(InferredType node) |
boolean |
visit(InfixExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(Initializer node)
Visits the given type-specific AST node.
|
boolean |
visit(InstanceofExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(JavaScriptUnit node)
Visits the given type-specific AST node.
|
boolean |
visit(JSdoc node)
Visits the given AST node.
|
boolean |
visit(LabeledStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(LineComment node)
Visits the given type-specific AST node.
|
boolean |
visit(ListExpression node) |
boolean |
visit(MemberRef node)
Visits the given type-specific AST node.
|
boolean |
visit(MetaProperty node)
Visits the given type-specific AST node.
|
boolean |
visit(Modifier node)
Visits the given type-specific AST node.
|
boolean |
visit(ModuleSpecifier node)
Visits the given type-specific AST node.
|
boolean |
visit(NullLiteral node)
Visits the given type-specific AST node.
|
boolean |
visit(NumberLiteral node)
Visits the given type-specific AST node.
|
boolean |
visit(ObjectLiteral node) |
boolean |
visit(ObjectLiteralField node) |
boolean |
visit(ObjectName node)
Visits the given type-specific AST node.
|
boolean |
visit(PackageDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(ParenthesizedExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(PostfixExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(PrefixExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(PrimitiveType node)
Visits the given type-specific AST node.
|
boolean |
visit(QualifiedName node)
Visits the given type-specific AST node.
|
boolean |
visit(QualifiedType node)
Visits the given type-specific AST node.
|
boolean |
visit(RegularExpressionLiteral node) |
boolean |
visit(RestElementName node)
Visits the given type-specific AST node.
|
boolean |
visit(ReturnStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(SimpleName node)
Visits the given type-specific AST node.
|
boolean |
visit(SimpleType node)
Visits the given type-specific AST node.
|
boolean |
visit(SingleVariableDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(SpreadElement node)
Visits the given type-specific AST node.
|
boolean |
visit(StringLiteral node)
Visits the given type-specific AST node.
|
boolean |
visit(SuperConstructorInvocation node)
Visits the given type-specific AST node.
|
boolean |
visit(SuperFieldAccess node)
Visits the given type-specific AST node.
|
boolean |
visit(SuperMethodInvocation node)
Visits the given type-specific AST node.
|
boolean |
visit(SwitchCase node)
Visits the given type-specific AST node.
|
boolean |
visit(SwitchStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(TagElement node)
Visits the given type-specific AST node.
|
boolean |
visit(TemplateElement node)
Visits the given type-specific AST node.
|
boolean |
visit(TemplateLiteral node)
Visits the given type-specific AST node.
|
boolean |
visit(TextElement node)
Visits the given type-specific AST node.
|
boolean |
visit(ThisExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(ThrowStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(TryStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(TypeDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(TypeDeclarationExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(TypeDeclarationStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(TypeLiteral node)
Visits the given type-specific AST node.
|
boolean |
visit(UndefinedLiteral node) |
boolean |
visit(VariableDeclarationExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(VariableDeclarationFragment node)
Visits the given type-specific AST node.
|
boolean |
visit(VariableDeclarationStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(WhileStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(WithStatement node) |
boolean |
visit(YieldExpression node)
Visits the given type-specific AST node.
|
protected boolean |
visitNode(ASTNode node) |
endVisit, endVisit, postVisit, preVisit
public DefaultASTVisitor()
public DefaultASTVisitor(boolean visitDocTags)
public void endVisit(AnonymousClassDeclaration node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ArrayAccess node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ArrayCreation node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ArrayInitializer node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ArrayType node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(Assignment node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(Block node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(BlockComment node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
Note: LineComment
and BlockComment
nodes are
not considered part of main structure of the AST. This method will
only be called if a client goes out of their way to visit this
kind of node explicitly.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(BooleanLiteral node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(BreakStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(CatchClause node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(CharacterLiteral node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ClassInstanceCreation node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(JavaScriptUnit node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ConditionalExpression node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ConstructorInvocation node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ContinueStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(DoStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(EmptyStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(EnhancedForStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ExpressionStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(FieldAccess node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(FieldDeclaration node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ForInStatement node)
endVisit
in class ASTVisitor
public void endVisit(ForStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(FunctionExpression node)
endVisit
in class ASTVisitor
public void endVisit(IfStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ImportDeclaration node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(InferredType node)
endVisit
in class ASTVisitor
public void endVisit(InfixExpression node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(Initializer node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(InstanceofExpression node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(JSdoc node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(LabeledStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(LineComment node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
Note: LineComment
and BlockComment
nodes are
not considered part of main structure of the AST. This method will
only be called if a client goes out of their way to visit this
kind of node explicitly.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ListExpression node)
endVisit
in class ASTVisitor
public void endVisit(MemberRef node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(FunctionDeclaration node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(FunctionInvocation node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(FunctionRef node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(FunctionRefParameter node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(NullLiteral node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(NumberLiteral node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ObjectLiteral node)
endVisit
in class ASTVisitor
public void endVisit(ObjectLiteralField node)
endVisit
in class ASTVisitor
public void endVisit(PackageDeclaration node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ParenthesizedExpression node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(PostfixExpression node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(PrefixExpression node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(PrimitiveType node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(QualifiedName node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(QualifiedType node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(RegularExpressionLiteral node)
endVisit
in class ASTVisitor
public void endVisit(ReturnStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(SimpleName node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(SimpleType node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(SingleVariableDeclaration node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(StringLiteral node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(SuperConstructorInvocation node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(SuperFieldAccess node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(SuperMethodInvocation node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(SwitchCase node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(SwitchStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(TagElement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(TextElement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ThisExpression node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(ThrowStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(TryStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(TypeDeclaration node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(TypeDeclarationStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(TypeLiteral node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(UndefinedLiteral node)
endVisit
in class ASTVisitor
public void endVisit(VariableDeclarationExpression node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(VariableDeclarationFragment node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(VariableDeclarationStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(WhileStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
node
- the node to visitpublic void endVisit(WithStatement node)
endVisit
in class ASTVisitor
public void endVisit(ForOfStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(YieldExpression node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(DebuggerStatement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(ArrayName node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(ObjectName node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(TemplateElement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(TemplateLiteral node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(AssignmentName node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(RestElementName node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(SpreadElement node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(MetaProperty node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(ModuleSpecifier node)
ASTVisitor
The default implementation does nothing. Subclasses may reimplement.
endVisit
in class ASTVisitor
public void endVisit(ExportDeclaration node)
endVisit
in class ASTVisitor
public void endVisit(TypeDeclarationExpression node)
endVisit
in class ASTVisitor
public void endVisit(FunctionDeclarationStatement node)
endVisit
in class ASTVisitor
protected void endVisitNode(ASTNode node)
public boolean visit(AnonymousClassDeclaration node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ArrayAccess node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ArrayCreation node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ArrayInitializer node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ArrayType node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(Assignment node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(Block node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(BlockComment node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
Note: LineComment
and BlockComment
nodes are
not considered part of main structure of the AST. This method will
only be called if a client goes out of their way to visit this
kind of node explicitly.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(BooleanLiteral node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(BreakStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(CatchClause node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(CharacterLiteral node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ClassInstanceCreation node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(JavaScriptUnit node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ConditionalExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ConstructorInvocation node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ContinueStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(DoStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(EmptyStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(EnhancedForStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ExpressionStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(FieldAccess node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(FieldDeclaration node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ForInStatement node)
visit
in class ASTVisitor
public boolean visit(ForStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(FunctionExpression node)
visit
in class ASTVisitor
public boolean visit(IfStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ImportDeclaration node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(InferredType node)
visit
in class ASTVisitor
public boolean visit(InfixExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(Initializer node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(InstanceofExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(JSdoc node)
ASTVisitor
Unlike other node types, the boolean returned by the default
implementation is controlled by a constructor-supplied
parameter ASTVisitor(boolean)
which is false
by default.
Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedASTVisitor.ASTVisitor()
,
ASTVisitor.ASTVisitor(boolean)
public boolean visit(LabeledStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(LineComment node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
Note: LineComment
and BlockComment
nodes are
not considered part of main structure of the AST. This method will
only be called if a client goes out of their way to visit this
kind of node explicitly.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ListExpression node)
visit
in class ASTVisitor
public boolean visit(MemberRef node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(FunctionDeclaration node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(FunctionInvocation node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(FunctionRef node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(FunctionRefParameter node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(NullLiteral node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(NumberLiteral node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ObjectLiteral node)
visit
in class ASTVisitor
public boolean visit(ObjectLiteralField node)
visit
in class ASTVisitor
public boolean visit(PackageDeclaration node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ParenthesizedExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(PostfixExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(PrefixExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(PrimitiveType node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(QualifiedName node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(QualifiedType node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(RegularExpressionLiteral node)
visit
in class ASTVisitor
public boolean visit(ReturnStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(SimpleName node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(SimpleType node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(SingleVariableDeclaration node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(StringLiteral node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(SuperConstructorInvocation node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(SuperFieldAccess node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(SuperMethodInvocation node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(SwitchCase node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(SwitchStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(TagElement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(TextElement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ThisExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ThrowStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(TryStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(TypeDeclaration node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(TypeDeclarationStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(TypeLiteral node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(UndefinedLiteral node)
visit
in class ASTVisitor
public boolean visit(VariableDeclarationExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(VariableDeclarationFragment node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(VariableDeclarationStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(WhileStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(WithStatement node)
visit
in class ASTVisitor
public boolean visit(ForOfStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(Modifier node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
node
- the node to visittrue
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(YieldExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ArrowFunctionExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(DebuggerStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ArrayName node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ObjectName node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(TemplateElement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(TemplateLiteral node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(AssignmentName node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(RestElementName node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(SpreadElement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(MetaProperty node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ModuleSpecifier node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(ExportDeclaration node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(TypeDeclarationExpression node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedpublic boolean visit(FunctionDeclarationStatement node)
ASTVisitor
The default implementation does nothing and return true. Subclasses may reimplement.
visit
in class ASTVisitor
true
if the children of this node should be
visited, and false
if the children of this node should
be skippedprotected boolean visitNode(ASTNode node)
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.