Interface ConfigurationVisitor.Stateless<E extends java.lang.Exception>

  • All Superinterfaces:
    ConfigurationVisitor<java.lang.Void,​java.lang.Void,​E>
    Enclosing interface:
    ConfigurationVisitor<S,​T,​E extends java.lang.Exception>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface ConfigurationVisitor.Stateless<E extends java.lang.Exception>
    extends ConfigurationVisitor<java.lang.Void,​java.lang.Void,​E>
    Stateless specialization of visitors, where both the state and terminal type are Void.
    Since:
    4.0.0
    • Method Detail

      • newState

        default java.lang.Void newState()
        Description copied from interface: ConfigurationVisitor
        Called to provide a state object if a visit is initiated without one already existing.
        Specified by:
        newState in interface ConfigurationVisitor<java.lang.Void,​java.lang.Void,​E extends java.lang.Exception>
        Returns:
        a new state object to be passed through the rest of this visit
      • beginVisit

        default void beginVisit​(ConfigurationNode node,
                                java.lang.Void state)
                         throws E extends java.lang.Exception
        Description copied from interface: ConfigurationVisitor
        Called at the beginning of the visit with a state object created.
        Specified by:
        beginVisit in interface ConfigurationVisitor<java.lang.Void,​java.lang.Void,​E extends java.lang.Exception>
        Parameters:
        node - the root node
        state - the state
        Throws:
        E - when thrown by implementation
        E extends java.lang.Exception
      • beginVisit

        default void beginVisit​(ConfigurationNode node)
                         throws E extends java.lang.Exception
        Called at the beginning of the visit with a state object created.
        Parameters:
        node - the root node
        Throws:
        E - as required by implementation
        E extends java.lang.Exception
        Since:
        4.0.0
      • enterNode

        default void enterNode​(ConfigurationNode node,
                               java.lang.Void state)
                        throws E extends java.lang.Exception
        Description copied from interface: ConfigurationVisitor
        Called once per node, for every node.
        Specified by:
        enterNode in interface ConfigurationVisitor<java.lang.Void,​java.lang.Void,​E extends java.lang.Exception>
        Parameters:
        node - the current node
        state - provided state
        Throws:
        E - when thrown by implementation
        E extends java.lang.Exception
      • enterNode

        void enterNode​(ConfigurationNode node)
                throws E extends java.lang.Exception
        Called once per node, for every node.
        Parameters:
        node - the current node
        Throws:
        E - as required by implementation
        E extends java.lang.Exception
        Since:
        4.0.0
      • exitMappingNode

        default void exitMappingNode​(ConfigurationNode node,
                                     java.lang.Void state)
                              throws E extends java.lang.Exception
        Description copied from interface: ConfigurationVisitor
        Called for a list node after the node and any of its children have been visited.
        Specified by:
        exitMappingNode in interface ConfigurationVisitor<java.lang.Void,​java.lang.Void,​E extends java.lang.Exception>
        Parameters:
        node - the node that has been visited
        state - provided state
        Throws:
        E - when thrown by implementation
        E extends java.lang.Exception
      • exitMappingNode

        default void exitMappingNode​(ConfigurationNode node)
                              throws E extends java.lang.Exception
        Called for a mapping node after the node and any of its children have been visited.
        Parameters:
        node - the node that has been visited
        Throws:
        E - when thrown by implementation
        E extends java.lang.Exception
        Since:
        4.0.0
      • exitListNode

        default void exitListNode​(ConfigurationNode node,
                                  java.lang.Void state)
                           throws E extends java.lang.Exception
        Description copied from interface: ConfigurationVisitor
        Called for a list node after the node and any of its children have been visited.
        Specified by:
        exitListNode in interface ConfigurationVisitor<java.lang.Void,​java.lang.Void,​E extends java.lang.Exception>
        Parameters:
        node - the node that has been visited
        state - provided state
        Throws:
        E - when thrown by implementation
        E extends java.lang.Exception
      • exitListNode

        default void exitListNode​(ConfigurationNode node)
                           throws E extends java.lang.Exception
        Called for a list node after the node and any of its children have been visited.
        Parameters:
        node - the node that has been visited
        Throws:
        E - when thrown by implementation
        E extends java.lang.Exception
        Since:
        4.0.0
      • endVisit

        default java.lang.Void endVisit​(java.lang.Void state)
                                 throws E extends java.lang.Exception
        Description copied from interface: ConfigurationVisitor
        Called after every node has been visited, to allow for cleanup and validation.
        Specified by:
        endVisit in interface ConfigurationVisitor<java.lang.Void,​java.lang.Void,​E extends java.lang.Exception>
        Parameters:
        state - provided state
        Returns:
        a terminal value
        Throws:
        E - when thrown by implementation
        E extends java.lang.Exception
      • endVisit

        default void endVisit()
                       throws E extends java.lang.Exception
        Called after every node has been visited, to allow for cleanup and validation.
        Throws:
        E - when thrown by implementation
        E extends java.lang.Exception
        Since:
        4.0.0