Interface ElementVisitor

All Known Implementing Classes:
WhitespaceTrimmingVisitor

@ThreadSafe public interface ElementVisitor
Provides a variation of the Visitor pattern for performing operations on DOM elements 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
    visitElement(Element visited, Item<Element> item)
    Called on each Element visited as part of the processing of an Element item.
  • Method Details

    • visitElement

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