Interface CommandElement

All Known Subinterfaces:
CommandElement.Argument, CommandElement.Flag

public sealed interface CommandElement permits CommandElement.Argument, CommandElement.Flag
A CommandElement represents a part of a given command chain. Allowing the user to read basic information about the internals of a command without having to interact with the underlying command system.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents a command argument.
    static interface 
    Represents a command flag, usually an optional named argument.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the aliases of this command element.
    Returns the description of this command element.
    Returns the name of this command element.
  • Method Details

    • getName

      String getName()
      Returns the name of this command element.
    • getDescription

      DescriptionFacade getDescription()
      Returns the description of this command element.
    • getAliases

      Set<String> getAliases()
      Returns the aliases of this command element.