Class CounterVisitor

    • Constructor Detail

      • CounterVisitor

        public CounterVisitor()
    • Method Detail

      • visitBefore

        public void visitBefore​(Element element,
                                ExecutionContext executionContext)
        Description copied from interface: BeforeVisitor
        Visits the beginning of an Element.
        Specified by:
        visitBefore in interface BeforeVisitor
        Parameters:
        element - the Element representing the beginning of the fragment. The Element's ancestors are traversable unless the global configuration parameter maintain.element.stack is set to false. The Element's child nodes are not traversable.
        executionContext - the current ExecutionContext