Interface ArgumentType<T,V>
- All Known Implementing Classes:
IntegerArgumentType,StringArgumentType
public interface ArgumentType<T,V>
-
Method Summary
-
Method Details
-
parseInput
- Throws:
IllegalArgumentException- if string invalid
-
defaultSuggestionProvider
SuggestionProvider<T> defaultSuggestionProvider() -
isGreedy
default boolean isGreedy()- Returns:
- whether this argument is greedy. Greedy arguments consume all remaining input instead of a single word. For example, given the 2 words "hello" "world" as input, a greedy argument parses "hello world" as a single value. Greedy arguments may not be followed by another argument or a literal
-