-
public class ElementTraversorDepth-first e traversor. Use to iterate through all es under and including the specified root e.
This implementation does not use recursion, so a deep DOM does not risk blowing the stack.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ElementTraversorINSTANCE
-
Method Summary
Modifier and Type Method Description final static Unittraverse(ElementVisitor visitor, Element root)Start a depth-first traverse of the root and all of its descendants. final Unittraverse(Element root, Function1<Element, Unit> visitor)-
-
Method Detail
-
traverse
final static Unit traverse(ElementVisitor visitor, Element root)
Start a depth-first traverse of the root and all of its descendants.
- Parameters:
root- the root e point to traverse.
-
traverse
final Unit traverse(Element root, Function1<Element, Unit> visitor)
-
-
-
-