Package 

Object ElementTraversor


  • 
    public class ElementTraversor
    
                        

    Depth-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.

    • Method Summary

      Modifier and Type Method Description
      final static Unit traverse(ElementVisitor visitor, Element root) Start a depth-first traverse of the root and all of its descendants.
      final Unit traverse(Element root, Function1<Element, Unit> visitor)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)