Package cloud.commandframework.internal
Class CommandInputTokenizer
java.lang.Object
cloud.commandframework.internal.CommandInputTokenizer
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
-
Method Summary
Modifier and TypeMethodDescription@NonNull LinkedList<@NonNull String>
tokenize()
Turn the input into tokens
-
Constructor Details
-
CommandInputTokenizer
Create a new input tokenizer- Parameters:
input
- Input that is to be turned into tokens
-
-
Method Details
-
tokenize
Turn the input into tokens- Returns:
- Linked list containing the tokenized input
-