Interface NodeVisitor

All Known Implementing Classes:
WhitespaceTrimmingVisitor

@ThreadSafe public interface NodeVisitor
Provides a variation of the Visitor pattern for performing operations on DOM nodes which are part of Element items.

All implementations of this interface must be thread-safe.

Since:
0.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    visitNode(Node visited, Item<Element> item)
    Called on each Node visited as part of the processing of an Element item.
  • Method Details

    • visitNode

      void visitNode(@Nonnull Node visited, @Nonnull Item<Element> item)
      Called on each Node visited as part of the processing of an Element item.
      Parameters:
      visited - the Node being visited.
      item - the Item which is the context for the visit.