Package com.vaadin.flow.dom
Interface NodeVisitor
-
public interface NodeVisitor
Element API node visitor interface.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
#accept(NodeVisitor, boolean)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
NodeVisitor.ElementType
The type of the element.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
visit(NodeVisitor.ElementType type, Element element)
Visit theelement
using provided elementtype
.boolean
visit(ShadowRoot root)
Visit the shadowroot
.
-
-
-
Method Detail
-
visit
boolean visit(NodeVisitor.ElementType type, Element element)
Visit theelement
using provided elementtype
.- Parameters:
type
- the element typeelement
- the element to visit- Returns:
true
to visit descendants,false
to stop traversal
-
visit
boolean visit(ShadowRoot root)
Visit the shadowroot
.- Parameters:
root
- the shadow root to visit- Returns:
true
to visit descendants,false
to stop traversal
-
-