Class CommandInputTokenizer

java.lang.Object
cloud.commandframework.internal.CommandInputTokenizer

public final class CommandInputTokenizer extends Object
Tokenizer that splits command inputs into tokens. This will split the string at every blank space. If the input string ends with a blank space, a trailing empty string will be added to the token list
  • Constructor Details

    • CommandInputTokenizer

      public CommandInputTokenizer(@NonNull String input)
      Create a new input tokenizer
      Parameters:
      input - Input that is to be turned into tokens
  • Method Details

    • tokenize

      public @NonNull LinkedList<@NonNull String> tokenize()
      Turn the input into tokens
      Returns:
      Linked list containing the tokenized input