Enum Class TreeTraverser.TraversalControl
java.lang.Object
java.lang.Enum<TreeTraverser.TraversalControl>
cloud.opencode.base.tree.TreeTraverser.TraversalControl
- All Implemented Interfaces:
Serializable, Comparable<TreeTraverser.TraversalControl>, Constable
- Enclosing class:
TreeTraverser
Traversal control enum
遍历控制枚举
- Since:
- JDK 25, opencode-base-tree V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionContinue to children | 继续到子节点Skip children, continue siblings | 跳过子节点,继续兄弟节点Stop traversal entirely | 完全停止遍历 -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TreeTraverser.TraversalControl[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTINUE
Continue to children | 继续到子节点 -
SKIP_SUBTREE
Skip children, continue siblings | 跳过子节点,继续兄弟节点 -
STOP
Stop traversal entirely | 完全停止遍历
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-