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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

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

      Constructors 
      Constructor Description
      ElementVisitor()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

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

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

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