Enum Class TreeExecutionResult.Status
java.lang.Object
java.lang.Enum<TreeExecutionResult.Status>
studio.mevera.imperat.command.tree.TreeExecutionResult.Status
- All Implemented Interfaces:
Serializable,Comparable<TreeExecutionResult.Status>,Constable
- Enclosing class:
- TreeExecutionResult<S extends CommandSource>
The status of a tree execution.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo matching pathway was found in the tree for the given input.The source does not have permission to execute the matched pathway.The tree traversal found a matching pathway and successfully executed it. -
Method Summary
Modifier and TypeMethodDescriptionstatic TreeExecutionResult.StatusReturns the enum constant of this class with the specified name.static TreeExecutionResult.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The tree traversal found a matching pathway and successfully executed it. -
PERMISSION_DENIED
The source does not have permission to execute the matched pathway. -
NO_MATCH
No matching pathway was found in the tree for the given input.
-
-
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
-