Object ElementTraversor

  • All Implemented Interfaces:

    
    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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

    • 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)