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
Modifier and Type Method Description default voidbeginVisit(ConfigurationNode node)Called at the beginning of the visit with a state object created.default voidbeginVisit(ConfigurationNode node, Void state)Called at the beginning of the visit with a state object created.default voidendVisit()Called after every node has been visited, to allow for cleanup and validationdefault VoidendVisit(Void state)Called after every node has been visited, to allow for cleanup and validationdefault voidenterListNode(ConfigurationNode node)Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for list nodesdefault voidenterListNode(ConfigurationNode node, Void state)Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for list nodesdefault voidenterMappingNode(ConfigurationNode node)Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for mapping nodesdefault voidenterMappingNode(ConfigurationNode node, Void state)Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for mapping nodesvoidenterNode(ConfigurationNode node)Called once per node, for every nodedefault voidenterNode(ConfigurationNode node, Void state)Called once per node, for every nodedefault voidenterScalarNode(ConfigurationNode node)Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for scalar nodesdefault voidenterScalarNode(ConfigurationNode node, Void state)Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for scalar nodesdefault voidexitListNode(ConfigurationNode node)Called for a list node after the node and any of its children have been visiteddefault voidexitListNode(ConfigurationNode node, Void state)Called for a list node after the node and any of its children have been visiteddefault voidexitMappingNode(ConfigurationNode node)Called for a mapping node after the node and any of its children have been visiteddefault voidexitMappingNode(ConfigurationNode node, Void state)Called for a list node after the node and any of its children have been visiteddefault VoidnewState()Called to provide a state object if a visit is initiated without one already existing
-
Method Details
-
newState
Description copied from interface:ConfigurationVisitorCalled to provide a state object if a visit is initiated without one already existing -
beginVisit
Description copied from interface:ConfigurationVisitorCalled at the beginning of the visit with a state object created.- Specified by:
beginVisitin interfaceConfigurationVisitor<Void,Void,E extends Exception>- Parameters:
node- the root nodestate- the state- Throws:
E- when thrown by implementation
-
enterNode
Description copied from interface:ConfigurationVisitorCalled once per node, for every node -
enterMappingNode
Description copied from interface:ConfigurationVisitorCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for mapping nodes- Specified by:
enterMappingNodein interfaceConfigurationVisitor<Void,Void,E extends Exception>- Parameters:
node- current nodestate- provided state- Throws:
E- when thrown by implementation
-
enterListNode
Description copied from interface:ConfigurationVisitorCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for list nodes- Specified by:
enterListNodein interfaceConfigurationVisitor<Void,Void,E extends Exception>- Parameters:
node- current nodestate- provided state- Throws:
E- when thrown by implementation
-
enterScalarNode
Description copied from interface:ConfigurationVisitorCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for scalar nodes- Specified by:
enterScalarNodein interfaceConfigurationVisitor<Void,Void,E extends Exception>- Parameters:
node- current nodestate- provided state- Throws:
E- when thrown by implementation
-
exitMappingNode
Description copied from interface:ConfigurationVisitorCalled for a list node after the node and any of its children have been visited- Specified by:
exitMappingNodein interfaceConfigurationVisitor<Void,Void,E extends Exception>- Parameters:
node- The node that has been visitedstate- provided state- Throws:
E- when thrown by implementation
-
exitListNode
Description copied from interface:ConfigurationVisitorCalled for a list node after the node and any of its children have been visited- Specified by:
exitListNodein interfaceConfigurationVisitor<Void,Void,E extends Exception>- Parameters:
node- The node that has been visitedstate- provided state- Throws:
E- when thrown by implementation
-
endVisit
Description copied from interface:ConfigurationVisitorCalled after every node has been visited, to allow for cleanup and validation -
beginVisit
Called at the beginning of the visit with a state object created.- Parameters:
node- The root node- Throws:
E- as required by implementation
-
enterNode
Called once per node, for every node- Parameters:
node- The current node- Throws:
E- as required by implementation
-
enterMappingNode
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for mapping nodes- Parameters:
node- current node- Throws:
E- when thrown by implementation
-
enterListNode
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for list nodes- Parameters:
node- current node- Throws:
E- when thrown by implementation
-
enterScalarNode
Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for scalar nodes- Parameters:
node- current node- Throws:
E- when thrown by implementation
-
exitMappingNode
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
-
exitListNode
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
-
endVisit
Called after every node has been visited, to allow for cleanup and validation- Throws:
E- when thrown by implementation
-