Class CommandInputTokenizer


  • public final class CommandInputTokenizer
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      CommandInputTokenizer​(@NonNull java.lang.String input)
      Create a new input tokenizer
    • Method Summary

      Modifier and Type Method Description
      @NonNull java.util.LinkedList<@NonNull java.lang.String> tokenize()
      Turn the input into tokens
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandInputTokenizer

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

      • tokenize

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