E - The type of the executorT - The type of the argumentpublic interface ArgumentType<E,T>
| Modifier and Type | Method and Description |
|---|---|
default int |
getWeight() |
default void |
parseCompletions(java.util.Set<java.lang.String> completions,
ExecutionContext<E> executionContext,
StringReader stringReader)
Provide the completions of this argument.
|
T |
parseValue(ExecutionContext<E> executionContext,
StringReader stringReader)
Parses the value of the argument.
|
default int getWeight()
@Nonnull T parseValue(ExecutionContext<E> executionContext, StringReader stringReader) throws ArgumentParseException, java.lang.RuntimeException
executionContext - The execution contextstringReader - The string readerArgumentParseException - If the value could not be parsedjava.lang.RuntimeException - If an unexpected error occurreddefault void parseCompletions(java.util.Set<java.lang.String> completions,
ExecutionContext<E> executionContext,
StringReader stringReader)
completions - The set of completionsexecutionContext - The execution contextstringReader - The string reader