public abstract class HierarchicalASTVisitor extends ASTVisitor
This class provides a convenient behaviour-only extension mechanism for the ASTNode hierarchy. If you feel like you would like to add a method to the ASTNode hierarchy (or a subtree of the hierarchy), and you want to have different implementations of it at different points in the hierarchy, simply create a HierarchicalASTVisitor representing the new method and all its implementations, locating each implementation within the right visit(XX) method. If you wanted to add a method implementation to abstract class Foo, an ASTNode descendant, put your implementation in visit(Foo). This class will provide appropriate dispatch, just as if the method implementations had been added to the ASTNode hierarchy.
Details:
This class has a visit(XX node) method for every class (concrete or abstract) XX in the ASTNode hierarchy. In this class' default implementations of these methods, the method corresponding to a given ASTNode descendant class will call (and return the return value of) the visit(YY) method for it's superclass YY, with the exception of the visit(ASTNode) method which simply returns true, since ASTNode doesn't have a superclass that is within the ASTNode hierarchy.
Because of this organization, when visit(XX) methods are overridden in a subclass, and the visitor is applied to a node, only the most specialized overridden method implementation for the node's type will be called, unless this most specialized method calls other visit methods (this is discouraged) or, (preferably) calls super.visit(XX node), (the reference type of the parameter must be XX) which will invoke this class' implementation of the method, which will, in turn, invoke the visit(YY) method corresponding to the superclass, YY.
Thus, the dispatching behaviour achieved when HierarchicalASTVisitors' visit(XX) methods, corresponding to a particular concrete or abstract ASTNode descendant class, are overridden is exactly analogous to the dispatching behaviour obtained when method implementations are added to the same ASTNode descendant classes.
| Constructor and Description |
|---|
HierarchicalASTVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
endVisit(AbstractTypeDeclaration node) |
void |
endVisit(AnnotatableType node) |
void |
endVisit(Annotation node) |
void |
endVisit(AnnotationTypeDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(AnnotationTypeMemberDeclaration node)
End of visit the given type-specific AST node.
|
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(ArrayType node)
End of visit the given type-specific AST node.
|
void |
endVisit(AssertStatement 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(ASTNode node)
End of visit the given 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(BodyDeclaration 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(CastExpression 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(Comment node) |
void |
endVisit(CompilationUnit 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(CreationReference node)
End of visit the given type-specific AST node.
|
void |
endVisit(Dimension 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(EnumConstantDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(EnumDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(ExportsDirective node)
End of visit the given type-specific AST node.
|
void |
endVisit(Expression node) |
void |
endVisit(ExpressionMethodReference node)
End of visit the given type-specific AST 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(ForStatement 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(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(IntersectionType node)
End of visit the given type-specific AST node.
|
void |
endVisit(Javadoc 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(LambdaExpression 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(MarkerAnnotation node)
End of visit the given type-specific AST node.
|
void |
endVisit(MemberRef node)
End of visit the given type-specific AST node.
|
void |
endVisit(MemberValuePair node)
End of visit the given type-specific AST node.
|
void |
endVisit(MethodDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(MethodInvocation node)
End of visit the given type-specific AST node.
|
void |
endVisit(MethodRef node)
End of visit the given type-specific AST node.
|
void |
endVisit(MethodReference node) |
void |
endVisit(MethodRefParameter node)
End of visit the given type-specific AST node.
|
void |
endVisit(Modifier node)
End of visit the given type-specific AST node.
|
void |
endVisit(ModuleDeclaration node)
End of visit the given type-specific AST node.
|
void |
endVisit(ModuleDirective node) |
void |
endVisit(ModuleModifier node)
End of visit the given type-specific AST node.
|
void |
endVisit(Name node) |
void |
endVisit(NameQualifiedType node)
End of visit the given type-specific AST node.
|
void |
endVisit(NormalAnnotation 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(OpensDirective 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(ParameterizedType 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(ProvidesDirective 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(RequiresDirective 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(SingleMemberAnnotation 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(Statement 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(SuperMethodReference 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(SynchronizedStatement 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(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(Type node) |
void |
endVisit(TypeDeclaration node)
End of visit the given type-specific AST 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(TypeMethodReference node)
End of visit the given type-specific AST node.
|
void |
endVisit(TypeParameter node)
End of visit the given type-specific AST node.
|
void |
endVisit(UnionType node)
End of visit the given type-specific AST node.
|
void |
endVisit(UsesDirective node)
End of visit the given type-specific AST node.
|
void |
endVisit(VariableDeclaration 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(WildcardType node)
End of visit the given type-specific AST node.
|
boolean |
visit(AbstractTypeDeclaration node) |
boolean |
visit(AnnotatableType node) |
boolean |
visit(Annotation node) |
boolean |
visit(AnnotationTypeDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(AnnotationTypeMemberDeclaration node)
Visits the given type-specific AST 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(ArrayType node)
Visits the given type-specific AST node.
|
boolean |
visit(AssertStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(Assignment node)
Visits the given type-specific AST node.
|
boolean |
visit(ASTNode node)
Visits the given 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(BodyDeclaration 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(CastExpression 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(Comment node) |
boolean |
visit(CompilationUnit 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(CreationReference node)
Visits the given type-specific AST node.
|
boolean |
visit(Dimension 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(EnumConstantDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(EnumDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(ExportsDirective node)
Visits the given type-specific AST node.
|
boolean |
visit(Expression node) |
boolean |
visit(ExpressionMethodReference 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(ForStatement 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(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(IntersectionType node)
Visits the given type-specific AST node.
|
boolean |
visit(Javadoc node)
Visits the given AST node.
|
boolean |
visit(LabeledStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(LambdaExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(LineComment node)
Visits the given type-specific AST node.
|
boolean |
visit(MarkerAnnotation node)
Visits the given type-specific AST node.
|
boolean |
visit(MemberRef node)
Visits the given type-specific AST node.
|
boolean |
visit(MemberValuePair node)
Visits the given type-specific AST node.
|
boolean |
visit(MethodDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(MethodInvocation node)
Visits the given type-specific AST node.
|
boolean |
visit(MethodRef node)
Visits the given type-specific AST node.
|
boolean |
visit(MethodReference node) |
boolean |
visit(MethodRefParameter node)
Visits the given type-specific AST node.
|
boolean |
visit(Modifier node)
Visits the given type-specific AST node.
|
boolean |
visit(ModuleDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(ModuleDirective node) |
boolean |
visit(ModuleModifier node)
Visits the given type-specific AST node.
|
boolean |
visit(Name node) |
boolean |
visit(NameQualifiedType node)
Visits the given type-specific AST node.
|
boolean |
visit(NormalAnnotation 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(OpensDirective node)
Visits the given type-specific AST node.
|
boolean |
visit(PackageDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(ParameterizedType 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(ProvidesDirective 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(RequiresDirective 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(SingleMemberAnnotation node)
Visits the given type-specific AST node.
|
boolean |
visit(SingleVariableDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(Statement 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(SuperMethodReference 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(SynchronizedStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(TagElement 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(Type node) |
boolean |
visit(TypeDeclaration 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(TypeMethodReference node)
Visits the given type-specific AST node.
|
boolean |
visit(TypeParameter node)
Visits the given type-specific AST node.
|
boolean |
visit(UnionType node)
Visits the given type-specific AST node.
|
boolean |
visit(UsesDirective node)
Visits the given type-specific AST node.
|
boolean |
visit(VariableDeclaration 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(WildcardType node)
Visits the given type-specific AST node.
|
public boolean visit(ASTNode node)
The default implementation does nothing and return true. Subclasses may reimplement.
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 void endVisit(ASTNode node)
The default implementation does nothing. Subclasses may reimplement.
node - the node to visitpublic 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 void endVisit(AnonymousClassDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(BodyDeclaration node)
public void endVisit(BodyDeclaration node)
public boolean visit(AbstractTypeDeclaration node)
public void endVisit(AbstractTypeDeclaration node)
public boolean visit(AnnotationTypeDeclaration 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 void endVisit(AnnotationTypeDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(EnumDeclaration 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 void endVisit(EnumDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(TypeDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(AnnotationTypeMemberDeclaration 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 void endVisit(AnnotationTypeMemberDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(EnumConstantDeclaration 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 void endVisit(EnumConstantDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(FieldDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(Initializer node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(MethodDeclaration 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 void endVisit(MethodDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(CatchClause node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(Comment node)
public void endVisit(Comment node)
public 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 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 boolean visit(Javadoc 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 void endVisit(Javadoc node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 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 boolean visit(CompilationUnit 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 void endVisit(CompilationUnit node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(Dimension 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 void endVisit(Dimension node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(Expression node)
public void endVisit(Expression node)
public boolean visit(Annotation node)
public void endVisit(Annotation node)
public boolean visit(MarkerAnnotation 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 void endVisit(MarkerAnnotation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(NormalAnnotation 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 void endVisit(NormalAnnotation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(SingleMemberAnnotation 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 void endVisit(SingleMemberAnnotation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ArrayAccess node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ArrayCreation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ArrayInitializer node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(Assignment node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(BooleanLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(CastExpression 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 void endVisit(CastExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(CharacterLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ClassInstanceCreation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ConditionalExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(FieldAccess node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(InfixExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(InstanceofExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(LambdaExpression 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 void endVisit(LambdaExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(MethodInvocation 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 void endVisit(MethodInvocation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(MethodReference node)
public void endVisit(MethodReference node)
public boolean visit(CreationReference node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may re-implement.
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 void endVisit(CreationReference node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(ExpressionMethodReference node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may re-implement.
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 void endVisit(ExpressionMethodReference node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(SuperMethodReference 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 void endVisit(SuperMethodReference node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(TypeMethodReference 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 void endVisit(TypeMethodReference node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(Name node)
public void endVisit(Name node)
public 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 void endVisit(QualifiedName node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(SimpleName node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(NullLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(NumberLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ParenthesizedExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(PostfixExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(PrefixExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(StringLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(SuperFieldAccess node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(SuperMethodInvocation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ThisExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(TypeLiteral node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(VariableDeclarationExpression node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ImportDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(MemberRef node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(MemberValuePair 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 void endVisit(MemberValuePair node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(MethodRef 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 void endVisit(MethodRef node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(MethodRefParameter 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 void endVisit(MethodRefParameter node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(Modifier node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(PackageDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(Statement node)
public void endVisit(Statement node)
public boolean visit(AssertStatement 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 void endVisit(AssertStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(Block node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(BreakStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ConstructorInvocation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ContinueStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(DoStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(EmptyStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(EnhancedForStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ExpressionStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ForStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(IfStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(LabeledStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ReturnStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(SuperConstructorInvocation node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(SwitchCase node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(SwitchStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(SynchronizedStatement 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 void endVisit(SynchronizedStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ThrowStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(TryStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(TypeDeclarationStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(VariableDeclarationStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(WhileStatement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(TagElement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(TextElement node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(Type node)
public void endVisit(Type node)
public boolean visit(AnnotatableType node)
public void endVisit(AnnotatableType node)
public boolean visit(NameQualifiedType 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 void endVisit(NameQualifiedType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(PrimitiveType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(QualifiedType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(SimpleType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(WildcardType 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 void endVisit(WildcardType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(ArrayType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(IntersectionType 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 void endVisit(IntersectionType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(ParameterizedType 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 void endVisit(ParameterizedType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(UnionType 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 void endVisit(UnionType node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(TypeParameter 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 void endVisit(TypeParameter node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(VariableDeclaration node)
public void endVisit(VariableDeclaration node)
public 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 void endVisit(SingleVariableDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic 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 void endVisit(VariableDeclarationFragment node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(ModuleDeclaration 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 void endVisit(ModuleDeclaration node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(ModuleModifier 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 void endVisit(ModuleModifier node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(ModuleDirective node)
public void endVisit(ModuleDirective node)
public boolean visit(ExportsDirective node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may re-implement.
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 void endVisit(ExportsDirective node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(OpensDirective node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may re-implement.
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 void endVisit(OpensDirective node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(RequiresDirective node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may re-implement.
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 void endVisit(RequiresDirective node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(ProvidesDirective node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may re-implement.
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 void endVisit(ProvidesDirective node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visitpublic boolean visit(UsesDirective node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may re-implement.
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 void endVisit(UsesDirective node)
ASTVisitorThe default implementation does nothing. Subclasses may reimplement.
endVisit in class ASTVisitornode - the node to visit