Package ninja.leaping.configurate.util
Class ConfigurationNodeWalker
- java.lang.Object
-
- ninja.leaping.configurate.util.ConfigurationNodeWalker
-
@Deprecated public abstract class ConfigurationNodeWalker extends Object
Deprecated.Use ScopedConfigurationNode#visit(ConfigurationVisitor) insteadRepresents a method for "walking" or traversing aconfigurationstructure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConfigurationNodeWalker.VisitedNode<T extends ConfigurationNode>Deprecated.Encapsulates a givennodevisited during a traversal.
-
Field Summary
Fields Modifier and Type Field Description static ConfigurationNodeWalkerBREADTH_FIRSTDeprecated.AConfigurationNodeWalkerthat implements a breadth-first traversal over the configuration.static ConfigurationNodeWalkerDEPTH_FIRST_POST_ORDERDeprecated.AConfigurationNodeWalkerthat implements a depth-first post-order traversal over the configuration.static ConfigurationNodeWalkerDEPTH_FIRST_PRE_ORDERDeprecated.AConfigurationNodeWalkerthat implements a depth-first pre-order traversal over the configuration.
-
Constructor Summary
Constructors Constructor Description ConfigurationNodeWalker()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T extends ConfigurationNode>
@NonNull Iterator<T>walk(@NonNull T start)Deprecated.Returns an iterator which will iterate over all nodes in the configuration, in the order defined by the walker.<T extends ConfigurationNode>
voidwalk(@NonNull T start, @NonNull BiConsumer<? super NodePath,? super T> consumer)Deprecated.Walks the configuration, and calls theconsumerfor each path and node visited, in the order defined by the walker.abstract <T extends ConfigurationNode>
@NonNull Iterator<ConfigurationNodeWalker.VisitedNode<T>>walkWithPath(@NonNull T start)Deprecated.Returns an iterator which will iterate over all paths and nodes in the configuration, in the order defined by the walker.
-
-
-
Field Detail
-
BREADTH_FIRST
public static final ConfigurationNodeWalker BREADTH_FIRST
Deprecated.AConfigurationNodeWalkerthat implements a breadth-first traversal over the configuration.See here for more info.
-
DEPTH_FIRST_PRE_ORDER
public static final ConfigurationNodeWalker DEPTH_FIRST_PRE_ORDER
Deprecated.AConfigurationNodeWalkerthat implements a depth-first pre-order traversal over the configuration.See here for more info.
-
DEPTH_FIRST_POST_ORDER
public static final ConfigurationNodeWalker DEPTH_FIRST_POST_ORDER
Deprecated.AConfigurationNodeWalkerthat implements a depth-first post-order traversal over the configuration.See here for more info.
-
-
Constructor Detail
-
ConfigurationNodeWalker
public ConfigurationNodeWalker()
Deprecated.
-
-
Method Detail
-
walkWithPath
public abstract <T extends ConfigurationNode> @NonNull Iterator<ConfigurationNodeWalker.VisitedNode<T>> walkWithPath(@NonNull T start)
Deprecated.Returns an iterator which will iterate over all paths and nodes in the configuration, in the order defined by the walker.- Type Parameters:
T- The node type- Parameters:
start- The node to start at- Returns:
- An iterator of
ConfigurationNodeWalker.VisitedNodes
-
walk
public <T extends ConfigurationNode> @NonNull Iterator<T> walk(@NonNull T start)
Deprecated.Returns an iterator which will iterate over all nodes in the configuration, in the order defined by the walker.- Type Parameters:
T- The node type- Parameters:
start- The node to start at- Returns:
- An iterator of
ConfigurationNodes
-
walk
public <T extends ConfigurationNode> void walk(@NonNull T start, @NonNull BiConsumer<? super NodePath,? super T> consumer)
Deprecated.Walks the configuration, and calls theconsumerfor each path and node visited, in the order defined by the walker.- Type Parameters:
T- The node type- Parameters:
start- The node to start atconsumer- The consumer to accept the visited nodes
-
-