java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.ASTVisitor
org.aspectj.org.eclipse.jdt.internal.core.util.DOMFinder

public class DOMFinder extends ASTVisitor
  • Field Details

    • foundNode

      public ASTNode foundNode
    • foundBinding

      public IBinding foundBinding
  • Constructor Details

  • Method Details

    • found

      protected boolean found(ASTNode node, ASTNode name)
    • search

      public ASTNode search() throws JavaModelException
      Throws:
      JavaModelException
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • visit

      public boolean visit(RecordDeclaration 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
    • 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
    • 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
    • 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
    • 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