Class HierarchicalASTVisitor

java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.ASTVisitor
org.aspectj.org.eclipse.jdt.internal.core.nd.indexer.HierarchicalASTVisitor

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 Details

    • HierarchicalASTVisitor

      public HierarchicalASTVisitor()
  • Method Details

    • visit

      public boolean visit(ASTNode node)
      Visits the given AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ASTNode node)
      End of visit the given AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Parameters:
      node - the node to visit
    • visit

      public boolean visit(AnonymousClassDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(AnonymousClassDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(BodyDeclaration node)
    • endVisit

      public void endVisit(BodyDeclaration node)
    • visit

      public boolean visit(AbstractTypeDeclaration node)
    • endVisit

      public void endVisit(AbstractTypeDeclaration node)
    • visit

      public boolean visit(AnnotationTypeDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(AnnotationTypeDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(EnumDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(EnumDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(TypeDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(TypeDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(AnnotationTypeMemberDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(AnnotationTypeMemberDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(EnumConstantDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(EnumConstantDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(FieldDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(FieldDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Initializer node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(Initializer node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(MethodDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(MethodDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(CatchClause node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(CatchClause node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Comment node)
    • endVisit

      public void endVisit(Comment node)
    • visit

      public boolean visit(BlockComment node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Note: LineComment and BlockComment nodes are not considered part of main structure of the AST. This method will only be called if a client goes out of their way to visit this kind of node explicitly.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(BlockComment node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Note: LineComment and BlockComment nodes are not considered part of main structure of the AST. This method will only be called if a client goes out of their way to visit this kind of node explicitly.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Javadoc node)
      Description copied from class: ASTVisitor
      Visits the given AST node.

      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.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
      See Also:
      ASTVisitor(), ASTVisitor(boolean)
    • endVisit

      public void endVisit(Javadoc node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(LineComment node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Note: LineComment and BlockComment nodes are not considered part of main structure of the AST. This method will only be called if a client goes out of their way to visit this kind of node explicitly.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(LineComment node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Note: LineComment and BlockComment nodes are not considered part of main structure of the AST. This method will only be called if a client goes out of their way to visit this kind of node explicitly.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(CompilationUnit node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(CompilationUnit node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Dimension node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(Dimension node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Expression node)
    • endVisit

      public void endVisit(Expression node)
    • visit

      public boolean visit(Annotation node)
    • endVisit

      public void endVisit(Annotation node)
    • visit

      public boolean visit(MarkerAnnotation node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(MarkerAnnotation node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(NormalAnnotation node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(NormalAnnotation node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(SingleMemberAnnotation node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SingleMemberAnnotation node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ArrayAccess node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ArrayAccess node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ArrayCreation node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ArrayCreation node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ArrayInitializer node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ArrayInitializer node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Assignment node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(Assignment node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(BooleanLiteral node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(BooleanLiteral node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(CastExpression node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(CastExpression node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(CharacterLiteral node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(CharacterLiteral node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ClassInstanceCreation node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ClassInstanceCreation node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ConditionalExpression node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ConditionalExpression node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(FieldAccess node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(FieldAccess node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(InfixExpression node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(InfixExpression node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(InstanceofExpression node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(InstanceofExpression node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(LambdaExpression node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(LambdaExpression node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(MethodInvocation node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(MethodInvocation node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(MethodReference node)
    • endVisit

      public void endVisit(MethodReference node)
    • visit

      public boolean visit(CreationReference node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(CreationReference node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ExpressionMethodReference node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ExpressionMethodReference node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(SuperMethodReference node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SuperMethodReference node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(TypeMethodReference node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(TypeMethodReference node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Name node)
    • endVisit

      public void endVisit(Name node)
    • visit

      public boolean visit(QualifiedName node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(QualifiedName node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(SimpleName node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SimpleName node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(NullLiteral node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(NullLiteral node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(NumberLiteral node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(NumberLiteral node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ParenthesizedExpression node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ParenthesizedExpression node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(PostfixExpression node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(PostfixExpression node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(PrefixExpression node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(PrefixExpression node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(StringLiteral node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(StringLiteral node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(SuperFieldAccess node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SuperFieldAccess node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(SuperMethodInvocation node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SuperMethodInvocation node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ThisExpression node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ThisExpression node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(TypeLiteral node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(TypeLiteral node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(VariableDeclarationExpression node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(VariableDeclarationExpression node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ImportDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ImportDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(MemberRef node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(MemberRef node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(MemberValuePair node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(MemberValuePair node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(MethodRef node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(MethodRef node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(MethodRefParameter node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(MethodRefParameter node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Modifier node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(Modifier node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(PackageDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(PackageDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Statement node)
    • endVisit

      public void endVisit(Statement node)
    • visit

      public boolean visit(AssertStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(AssertStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Block node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(Block node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(BreakStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(BreakStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ConstructorInvocation node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ConstructorInvocation node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ContinueStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ContinueStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(DoStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(DoStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(EmptyStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(EmptyStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(EnhancedForStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(EnhancedForStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ExpressionStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ExpressionStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ForStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ForStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(IfStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(IfStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(LabeledStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(LabeledStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ReturnStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ReturnStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(SuperConstructorInvocation node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SuperConstructorInvocation node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(SwitchCase node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SwitchCase node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(SwitchStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SwitchStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(SynchronizedStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SynchronizedStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ThrowStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ThrowStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(TryStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(TryStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(TypeDeclarationStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(TypeDeclarationStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(VariableDeclarationStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(VariableDeclarationStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(WhileStatement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(WhileStatement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(TagElement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(TagElement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(TextElement node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(TextElement node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(Type node)
    • endVisit

      public void endVisit(Type node)
    • visit

      public boolean visit(AnnotatableType node)
    • endVisit

      public void endVisit(AnnotatableType node)
    • visit

      public boolean visit(NameQualifiedType node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(NameQualifiedType node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(PrimitiveType node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(PrimitiveType node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(QualifiedType node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(QualifiedType node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(SimpleType node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SimpleType node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(WildcardType node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(WildcardType node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ArrayType node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ArrayType node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(IntersectionType node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(IntersectionType node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ParameterizedType node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ParameterizedType node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(UnionType node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(UnionType node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(TypeParameter node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(TypeParameter node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(VariableDeclaration node)
    • endVisit

      public void endVisit(VariableDeclaration node)
    • visit

      public boolean visit(SingleVariableDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(SingleVariableDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(VariableDeclarationFragment node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(VariableDeclarationFragment node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ModuleDeclaration node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ModuleDeclaration node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ModuleModifier node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ModuleModifier node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ModuleDirective node)
    • endVisit

      public void endVisit(ModuleDirective node)
    • visit

      public boolean visit(ExportsDirective node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ExportsDirective node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(OpensDirective node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(OpensDirective node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(RequiresDirective node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(RequiresDirective node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(ProvidesDirective node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(ProvidesDirective node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit
    • visit

      public boolean visit(UsesDirective node)
      Description copied from class: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Overrides:
      visit in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • endVisit

      public void endVisit(UsesDirective node)
      Description copied from class: ASTVisitor
      End of visit the given type-specific AST node.

      The default implementation does nothing. Subclasses may reimplement.

      Overrides:
      endVisit in class ASTVisitor
      Parameters:
      node - the node to visit