Interface ICommandNode

All Known Subinterfaces:
ICommandHandler, ICommandManager
All Known Implementing Classes:
AbstractCommandHandler, SimpleCommandManager

public interface ICommandNode
A command node, either a handler or a manager.
  • Field Details

    • QUOTES_AS_NORMAL_CHAR

      static final int QUOTES_AS_NORMAL_CHAR
      Indicate to the parser that quotes should be processed as any other char. It is the responsibility of the ICommandNode to validate arguments.
      See Also:
  • Method Details

    • getName

      String getName()
      Retrieve the name of the command (used to invoke the command)
      Returns:
    • getHelp

      String getHelp()
      Retrieve a short help that describes the command
      Returns:
    • getOptions

      int getOptions()
      Returns:
    • getParent

      ICommandManager getParent()
      Retrieve the parent, that is, this node's manager.
      Returns:
    • getChildren

      List<ICommandNode> getChildren()
      Returns:
    • execute

      ExecutionResult execute(List<InputToken> tokens)
      Execute the command.
      Parameters:
      tokens -
      Returns: