Package com.vaadin.flow.dom
Interface NodeVisitor
-
public interface NodeVisitorElement 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 classNodeVisitor.ElementTypeThe type of the element.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanvisit(NodeVisitor.ElementType type, Element element)Visit theelementusing provided elementtype.booleanvisit(ShadowRoot root)Visit the shadowroot.
-
-
-
Method Detail
-
visit
boolean visit(NodeVisitor.ElementType type, Element element)
Visit theelementusing provided elementtype.- Parameters:
type- the element typeelement- the element to visit- Returns:
trueto visit descendants,falseto stop traversal
-
visit
boolean visit(ShadowRoot root)
Visit the shadowroot.- Parameters:
root- the shadow root to visit- Returns:
trueto visit descendants,falseto stop traversal
-
-