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>

public static enum TreeExecutionResult.Status extends Enum<TreeExecutionResult.Status>
The status of a tree execution.
  • Enum Constant Details

    • SUCCESS

      public static final TreeExecutionResult.Status SUCCESS
      The tree traversal found a matching pathway and successfully executed it.
    • PERMISSION_DENIED

      public static final TreeExecutionResult.Status PERMISSION_DENIED
      The source does not have permission to execute the matched pathway.
    • NO_MATCH

      public static final TreeExecutionResult.Status NO_MATCH
      No matching pathway was found in the tree for the given input.
  • Method Details

    • values

      public static TreeExecutionResult.Status[] 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

      public static TreeExecutionResult.Status valueOf(String name)
      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 name
      NullPointerException - if the argument is null