Enum Class CommandPathSearch.Result
java.lang.Object
java.lang.Enum<CommandPathSearch.Result>
studio.mevera.imperat.command.tree.CommandPathSearch.Result
- All Implemented Interfaces:
Serializable,Comparable<CommandPathSearch.Result>,Constable
- Enclosing class:
- CommandPathSearch<S extends Source>
Defines a setResult from dispatching the command execution.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefines a complete dispatch of the command,CommandUsagecannot be null unless theStandardCommandTreehas issuesDefines an execution that ended up with throwing an exception that had no handlerThe tree stopped midway for some reason, most probably would be that the source doesn't have access to aParameterNodethat matches his corresponding input.Defines an unknown execution/command, it's the default setResult -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CommandPathSearch.ResultReturns the enum constant of this class with the specified name.static CommandPathSearch.Result[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PAUSE
The tree stopped midway for some reason, most probably would be that the source doesn't have access to aParameterNodethat matches his corresponding input. -
COMPLETE
Defines a complete dispatch of the command,CommandUsagecannot be null unless theStandardCommandTreehas issues -
UNKNOWN
Defines an unknown execution/command, it's the default setResult -
FAILURE
Defines an execution that ended up with throwing an exception that had no handler
-
-
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
-
isStoppable
public boolean isStoppable()
-