Interface ElementHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ElementHandler
Called for each element a selector matches.

A class that also implements TextHandler or CommentHandler gets the text and comments inside the match too, from HTMLRewriter.on(String, ElementHandler).

Each call runs on its own fiber and the platform waits for it before it goes on, so a handler can wait on a binding or a fetch.

Since:
1.0.3
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    element(Element element)
    Handles one element.
  • Method Details

    • element

      void element(Element element)
      Handles one element.
      Parameters:
      element - the element, for use inside this call