Interface NodeVisitor


public interface NodeVisitor
Element API node visitor interface.
Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The type of the element.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Visit the element using provided element type.
    boolean
    Visit the shadow root.
  • Method Details

    • visit

      boolean visit(NodeVisitor.ElementType type, Element element)
      Visit the element using provided element type.
      Parameters:
      type - the element type
      element - the element to visit
      Returns:
      true to visit descendants, false to stop traversal
    • visit

      boolean visit(ShadowRoot root)
      Visit the shadow root.
      Parameters:
      root - the shadow root to visit
      Returns:
      true to visit descendants, false to stop traversal