Package ninja.leaping.configurate
Interface ConfigurationVisitor.Stateless<E extends Exception>
-
- All Superinterfaces:
ConfigurationVisitor<Void,Void,E>
- Enclosing interface:
- ConfigurationVisitor<S,T,E extends 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 Exception> extends ConfigurationVisitor<Void,Void,E>
Stateless specialization of visitors, where both the state and terminal type are Void
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ninja.leaping.configurate.ConfigurationVisitor
ConfigurationVisitor.Safe<S,T>, ConfigurationVisitor.Stateless<E extends Exception>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
beginVisit(ConfigurationNode node)
Called at the beginning of the visit with a state object created.default void
beginVisit(ConfigurationNode node, Void state)
Called at the beginning of the visit with a state object created.default void
endVisit()
Called after every node has been visited, to allow for cleanup and validationdefault Void
endVisit(Void state)
Called after every node has been visited, to allow for cleanup and validationdefault void
enterListNode(ConfigurationNode node)
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for list nodesdefault void
enterListNode(ConfigurationNode node, Void state)
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for list nodesdefault void
enterMappingNode(ConfigurationNode node)
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for mapping nodesdefault void
enterMappingNode(ConfigurationNode node, Void state)
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for mapping nodesvoid
enterNode(ConfigurationNode node)
Called once per node, for every nodedefault void
enterNode(ConfigurationNode node, Void state)
Called once per node, for every nodedefault void
enterScalarNode(ConfigurationNode node)
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for scalar nodesdefault void
enterScalarNode(ConfigurationNode node, Void state)
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for scalar nodesdefault void
exitListNode(ConfigurationNode node)
Called for a list node after the node and any of its children have been visiteddefault void
exitListNode(ConfigurationNode node, Void state)
Called for a list node after the node and any of its children have been visiteddefault void
exitMappingNode(ConfigurationNode node)
Called for a mapping node after the node and any of its children have been visiteddefault void
exitMappingNode(ConfigurationNode node, Void state)
Called for a list node after the node and any of its children have been visiteddefault Void
newState()
Called to provide a state object if a visit is initiated without one already existing
-
-
-
Method Detail
-
newState
default Void newState()
Description copied from interface:ConfigurationVisitor
Called to provide a state object if a visit is initiated without one already existing
-
beginVisit
default void beginVisit(ConfigurationNode node, Void state) throws E extends Exception
Description copied from interface:ConfigurationVisitor
Called at the beginning of the visit with a state object created.- Specified by:
beginVisit
in interfaceConfigurationVisitor<Void,Void,E extends Exception>
- Parameters:
node
- the root nodestate
- the state- Throws:
E
- when thrown by implementationE extends Exception
-
enterNode
default void enterNode(ConfigurationNode node, Void state) throws E extends Exception
Description copied from interface:ConfigurationVisitor
Called once per node, for every node
-
enterMappingNode
default void enterMappingNode(ConfigurationNode node, Void state) throws E extends Exception
Description copied from interface:ConfigurationVisitor
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for mapping nodes- Specified by:
enterMappingNode
in interfaceConfigurationVisitor<Void,Void,E extends Exception>
- Parameters:
node
- current nodestate
- provided state- Throws:
E
- when thrown by implementationE extends Exception
-
enterListNode
default void enterListNode(ConfigurationNode node, Void state) throws E extends Exception
Description copied from interface:ConfigurationVisitor
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for list nodes- Specified by:
enterListNode
in interfaceConfigurationVisitor<Void,Void,E extends Exception>
- Parameters:
node
- current nodestate
- provided state- Throws:
E
- when thrown by implementationE extends Exception
-
enterScalarNode
default void enterScalarNode(ConfigurationNode node, Void state) throws E extends Exception
Description copied from interface:ConfigurationVisitor
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for scalar nodes- Specified by:
enterScalarNode
in interfaceConfigurationVisitor<Void,Void,E extends Exception>
- Parameters:
node
- current nodestate
- provided state- Throws:
E
- when thrown by implementationE extends Exception
-
exitMappingNode
default void exitMappingNode(ConfigurationNode node, Void state) throws E extends 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 interfaceConfigurationVisitor<Void,Void,E extends Exception>
- Parameters:
node
- The node that has been visitedstate
- provided state- Throws:
E
- when thrown by implementationE extends Exception
-
exitListNode
default void exitListNode(ConfigurationNode node, Void state) throws E extends 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 interfaceConfigurationVisitor<Void,Void,E extends Exception>
- Parameters:
node
- The node that has been visitedstate
- provided state- Throws:
E
- when thrown by implementationE extends Exception
-
endVisit
default Void endVisit(Void state) throws E extends Exception
Description copied from interface:ConfigurationVisitor
Called after every node has been visited, to allow for cleanup and validation
-
beginVisit
default void beginVisit(ConfigurationNode node) throws E extends Exception
Called at the beginning of the visit with a state object created.
-
enterNode
void enterNode(ConfigurationNode node) throws E extends Exception
Called once per node, for every node
-
enterMappingNode
default void enterMappingNode(ConfigurationNode node) throws E extends Exception
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for mapping nodes
-
enterListNode
default void enterListNode(ConfigurationNode node) throws E extends Exception
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for list nodes
-
enterScalarNode
default void enterScalarNode(ConfigurationNode node) throws E extends Exception
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)
for scalar nodes
-
exitMappingNode
default void exitMappingNode(ConfigurationNode node) throws E extends Exception
Called for a mapping node after the node and any of its children have been visited
-
exitListNode
default void exitListNode(ConfigurationNode node) throws E extends Exception
Called for a list node after the node and any of its children have been visited
-
-