Package 

Class ElementVisitor

  • All Implemented Interfaces:
    ai.platon.pulsar.dom.select.IElementVisitor

    
    public abstract class ElementVisitor
     implements IElementVisitor
                        

    Node visitor interface. Provide an implementing class to ElementVisitor to iterate through nodes.

    This interface provides two methods, head and tail. The head method is called when the node is first seen, and the tail method when all of the node's children have been visited. As an example, head can be used to create a start tag for a node, and tail to create the end tag.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Boolean isStopped
    • Constructor Summary

      Constructors 
      Constructor Description
      ElementVisitor()
    • Method Summary

      Modifier and Type Method Description
      final Boolean getIsStopped()
      final Unit setIsStopped(Boolean isStopped)
      final Unit stop()
      • Methods inherited from class ai.platon.pulsar.dom.select.ElementVisitor

        head, tail
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait