Package com.vaadin.flow.dom
Interface NodeVisitor
public interface NodeVisitor
Element API node visitor interface.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe type of the element. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvisit(NodeVisitor.ElementType type, Element element) Visit theelementusing provided elementtype.booleanvisit(ShadowRoot root) Visit the shadowroot.
-
Method Details
-
visit
Visit theelementusing provided elementtype.- Parameters:
type- the element typeelement- the element to visit- Returns:
trueto visit descendants,falseto stop traversal
-
visit
Visit the shadowroot.- Parameters:
root- the shadow root to visit- Returns:
trueto visit descendants,falseto stop traversal
-