Class BlockNodeVisitor

All Implemented Interfaces:
NodeVisitHandler, Visitor<Node>, AstAction<Node>

public class BlockNodeVisitor extends NodeVisitor
Used to visit only block nodes, non block nodes or children of non-block nodes are not visited

Can be used to only process certain nodes. If you override a method and want visiting to descend into children, call NodeVisitor.visitChildren(com.vladsch.flexmark.util.ast.Node).

  • Constructor Details

    • BlockNodeVisitor

      public BlockNodeVisitor()
    • BlockNodeVisitor

      public BlockNodeVisitor(@NotNull @NotNull VisitHandler... handlers)
    • BlockNodeVisitor

      public BlockNodeVisitor(@NotNull @NotNull VisitHandler[]... handlers)
    • BlockNodeVisitor

      public BlockNodeVisitor(@NotNull @NotNull Collection<VisitHandler> handlers)
  • Method Details

    • processNode

      public void processNode(@NotNull @NotNull Node node, boolean withChildren, @NotNull @NotNull BiConsumer<Node,Visitor<Node>> processor)
      Description copied from class: AstActionHandler
      Node processing called for every node being processed

      Override this to add customizations to standard processing callback.

      Overrides:
      processNode in class AstActionHandler<NodeVisitor,Node,Visitor<Node>,VisitHandler<Node>>
      Parameters:
      node - node being processed
      withChildren - whether to process child nodes if there is no handler for the node type
      processor - processor to invoke to perform the processing, BiConsumer taking N node, and A action