Package org.spongepowered.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.
- Since:
- 4.0.0
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.configurate.ConfigurationVisitorConfigurationVisitor.Safe<S,T>, ConfigurationVisitor.Stateless<E extends Exception> 
- 
Method SummaryModifier and TypeMethodDescriptiondefault 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 validation.default VoidCalled after every node has been visited, to allow for cleanup and validation.default voidCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for list nodes.default voidenterListNode(ConfigurationNode node, Void state) Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for list nodes.default voidCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for mapping nodes.default voidenterMappingNode(ConfigurationNode node, Void state) Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for mapping nodes.voidenterNode(ConfigurationNode node) Called once per node, for every node.default voidenterNode(ConfigurationNode node, Void state) Called once per node, for every node.default voidCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for scalar nodes.default voidenterScalarNode(ConfigurationNode node, Void state) Called afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for scalar nodes.default voidCalled for a list node after the node and any of its children have been visited.default voidexitListNode(ConfigurationNode node, Void state) Called for a list node after the node and any of its children have been visited.default voidCalled for a mapping node after the node and any of its children have been visited.default voidexitMappingNode(ConfigurationNode node, Void state) Called for a list node after the node and any of its children have been visited.default VoidnewState()Called to provide a state object if a visit is initiated without one already existing.
- 
Method Details- 
newStateDescription copied from interface:ConfigurationVisitorCalled to provide a state object if a visit is initiated without one already existing.
- 
beginVisitDescription copied from interface:ConfigurationVisitorCalled at the beginning of the visit with a state object created.- Specified by:
- beginVisitin interface- ConfigurationVisitor<Void,- Void, - E extends Exception> 
- Parameters:
- node- the root node
- state- the state
- Throws:
- E- when thrown by implementation
 
- 
beginVisitCalled at the beginning of the visit with a state object created.- Parameters:
- node- the root node
- Throws:
- E- as required by implementation
- Since:
- 4.0.0
 
- 
enterNodeDescription copied from interface:ConfigurationVisitorCalled once per node, for every node.
- 
enterNodeCalled once per node, for every node.- Parameters:
- node- the current node
- Throws:
- E- as required by implementation
- Since:
- 4.0.0
 
- 
enterMappingNodeDescription copied from interface:ConfigurationVisitorCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for mapping nodes.- Specified by:
- enterMappingNodein interface- ConfigurationVisitor<Void,- Void, - E extends Exception> 
- Parameters:
- node- current node
- state- provided state
- Throws:
- E- when thrown by implementation
 
- 
enterMappingNodeCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for mapping nodes.- Parameters:
- node- current node
- Throws:
- E- when thrown by implementation
- Since:
- 4.0.0
 
- 
enterListNodeDescription copied from interface:ConfigurationVisitorCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for list nodes.- Specified by:
- enterListNodein interface- ConfigurationVisitor<Void,- Void, - E extends Exception> 
- Parameters:
- node- current node
- state- provided state
- Throws:
- E- when thrown by implementation
 
- 
enterListNodeCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for list nodes.- Parameters:
- node- current node
- Throws:
- E- when thrown by implementation
- Since:
- 4.0.0
 
- 
enterScalarNodeDescription copied from interface:ConfigurationVisitorCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for scalar nodes.- Specified by:
- enterScalarNodein interface- ConfigurationVisitor<Void,- Void, - E extends Exception> 
- Parameters:
- node- current node
- state- provided state
- Throws:
- E- when thrown by implementation
 
- 
enterScalarNodeCalled afterConfigurationVisitor.enterNode(ConfigurationNode, Object)for scalar nodes.- Parameters:
- node- current node
- Throws:
- E- when thrown by implementation
- Since:
- 4.0.0
 
- 
exitMappingNodeDescription copied from interface:ConfigurationVisitorCalled for a list node after the node and any of its children have been visited.- Specified by:
- exitMappingNodein interface- ConfigurationVisitor<Void,- Void, - E extends Exception> 
- Parameters:
- node- the node that has been visited
- state- provided state
- Throws:
- E- when thrown by implementation
 
- 
exitMappingNodeCalled 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
- Since:
- 4.0.0
 
- 
exitListNodeDescription copied from interface:ConfigurationVisitorCalled for a list node after the node and any of its children have been visited.- Specified by:
- exitListNodein interface- ConfigurationVisitor<Void,- Void, - E extends Exception> 
- Parameters:
- node- the node that has been visited
- state- provided state
- Throws:
- E- when thrown by implementation
 
- 
exitListNodeCalled 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
- Since:
- 4.0.0
 
- 
endVisitDescription copied from interface:ConfigurationVisitorCalled after every node has been visited, to allow for cleanup and validation.
- 
endVisitCalled after every node has been visited, to allow for cleanup and validation.- Throws:
- E- when thrown by implementation
- Since:
- 4.0.0
 
 
-