Class AbstractDepthFirstVisitor

    • Constructor Detail

      • AbstractDepthFirstVisitor

        public AbstractDepthFirstVisitor()
    • Method Detail

      • visit

        public void visit​(NodeElement element)
        Visit the element
        Specified by:
        visit in interface NodeElementVisitor
        Parameters:
        element - the element to be visited
      • startElement

        protected void startElement​(NodeElement element)
        Starts visiting an element. Override as needed
        Parameters:
        element - the element
      • startAttributes

        protected void startAttributes​(NodeElement element)
        Starts visiting the attributes of the element. Override as needed
        Parameters:
        element - the element
      • visitAttributes

        protected void visitAttributes​(NodeElement element,
                                       java.util.List<NodeAttribute> attributes)
        Visits the attributes of the element. Override as needed
        Parameters:
        element - the element
        attributes - the attributes
      • endAttributes

        protected void endAttributes​(NodeElement element)
        Finish visiting attributes of the element. Override as needed
        Parameters:
        element - the element
      • visitElement

        protected void visitElement​(NodeElement element)
        Visits the element. Override as needed
        Parameters:
        element - the element
      • startChildren

        protected void startChildren​(NodeElement element)
        Starts visiting children of the element. Override as needed
        Parameters:
        element - the element
      • endChildren

        protected void endChildren​(NodeElement element)
        Finish visiting children of the element. Override as needed
        Parameters:
        element - the element
      • endElement

        protected void endElement​(NodeElement element)
        Finish visiting the element. Override as needed
        Parameters:
        element - the element