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, preVisitpublic DefaultASTVisitor()
public DefaultASTVisitor(boolean visitDocTags)
public void endVisit(AnonymousClassDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ArrayAccess node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ArrayCreation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ArrayInitializer node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ArrayType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(Assignment node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(Block node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(BlockComment node)
ASTVisitorThe 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 ASTVisitornode - the node to visitpublic void endVisit(BooleanLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(BreakStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(CatchClause node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(CharacterLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ClassInstanceCreation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(JavaScriptUnit node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ConditionalExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ConstructorInvocation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ContinueStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(DoStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(EmptyStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(EnhancedForStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ExpressionStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(FieldAccess node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(FieldDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ForInStatement node)
endVisit in class ASTVisitorpublic void endVisit(ForStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(FunctionExpression node)
endVisit in class ASTVisitorpublic void endVisit(IfStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ImportDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(InferredType node)
endVisit in class ASTVisitorpublic void endVisit(InfixExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(Initializer node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(InstanceofExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(JSdoc node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(LabeledStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(LineComment node)
ASTVisitorThe 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 ASTVisitornode - the node to visitpublic void endVisit(ListExpression node)
endVisit in class ASTVisitorpublic void endVisit(MemberRef node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(FunctionDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(FunctionInvocation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(FunctionRef node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(FunctionRefParameter node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(NullLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(NumberLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ObjectLiteral node)
endVisit in class ASTVisitorpublic void endVisit(ObjectLiteralField node)
endVisit in class ASTVisitorpublic void endVisit(PackageDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ParenthesizedExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(PostfixExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(PrefixExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(PrimitiveType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(QualifiedName node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(QualifiedType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(RegularExpressionLiteral node)
endVisit in class ASTVisitorpublic void endVisit(ReturnStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(SimpleName node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(SimpleType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(SingleVariableDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(StringLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(SuperConstructorInvocation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(SuperFieldAccess node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(SuperMethodInvocation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(SwitchCase node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(SwitchStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(TagElement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(TextElement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ThisExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(ThrowStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(TryStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(TypeDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(TypeDeclarationStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(TypeLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(UndefinedLiteral node)
endVisit in class ASTVisitorpublic void endVisit(VariableDeclarationExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(VariableDeclarationFragment node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(VariableDeclarationStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(WhileStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic void endVisit(WithStatement node)
endVisit in class ASTVisitorpublic void endVisit(ForOfStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(YieldExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(DebuggerStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(ArrayName node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(ObjectName node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(TemplateElement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(TemplateLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(AssignmentName node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(RestElementName node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(SpreadElement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(MetaProperty node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(ModuleSpecifier node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitorpublic void endVisit(ExportDeclaration node)
endVisit in class ASTVisitorpublic void endVisit(TypeDeclarationExpression node)
endVisit in class ASTVisitorpublic void endVisit(FunctionDeclarationStatement node)
endVisit in class ASTVisitorprotected void endVisitNode(ASTNode node)
public boolean visit(AnonymousClassDeclaration node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe 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 ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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 ASTVisitorpublic boolean visit(ForStatement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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 ASTVisitorpublic boolean visit(IfStatement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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 ASTVisitorpublic boolean visit(InfixExpression node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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 ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe 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 ASTVisitornode - 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 ASTVisitorpublic boolean visit(MemberRef node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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 ASTVisitorpublic boolean visit(ObjectLiteralField node)
visit in class ASTVisitorpublic boolean visit(PackageDeclaration node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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 ASTVisitorpublic boolean visit(ReturnStatement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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 ASTVisitorpublic boolean visit(VariableDeclarationExpression node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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 ASTVisitorpublic boolean visit(ForOfStatement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - 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)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(ArrowFunctionExpression node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(DebuggerStatement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(ArrayName node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(ObjectName node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(TemplateElement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(TemplateLiteral node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(AssignmentName node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(RestElementName node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(SpreadElement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(MetaProperty node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(ModuleSpecifier node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(ExportDeclaration node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(TypeDeclarationExpression node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(FunctionDeclarationStatement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitortrue 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, 2016. All Rights Reserved.