E - The type of the executorT - The type of the argumentpublic class ListNode<E,T> extends ArgumentNode<E,java.util.List<T>>
providesArgument, weight| Constructor and Description |
|---|
ListNode(java.lang.String name,
ArgumentType<E,T> type) |
ListNode(java.lang.String name,
java.lang.String description,
ArgumentType<E,T> type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
parseCompletions(java.util.Set<java.lang.String> completions,
CompletionContext completionContext,
ExecutionContext<E> executionContext,
StringReader stringReader)
Provide the completions of this argument.
|
protected java.util.List<T> |
parseValue(ExecutionContext<E> executionContext,
StringReader stringReader)
Parse the value of this argument.
|
children, completions, completionsProvider, description, exceptionHandler, exceptionHandler, executes, executes, executes, executes, executor, name, providesArgument, requirement, requires, suggestions, then, validator, validator, value, weightpublic ListNode(java.lang.String name,
ArgumentType<E,T> type)
public ListNode(java.lang.String name,
@Nullable
java.lang.String description,
ArgumentType<E,T> type)
@Nonnull protected java.util.List<T> parseValue(ExecutionContext<E> executionContext, StringReader stringReader) throws ArgumentParseException, java.lang.RuntimeException
ArgumentNodeparseValue in class ArgumentNode<E,java.util.List<T>>executionContext - The execution contextstringReader - The string readerArgumentParseException - If the value could not be parsedjava.lang.RuntimeException - If an unexpected error occurredprotected void parseCompletions(java.util.Set<java.lang.String> completions,
CompletionContext completionContext,
ExecutionContext<E> executionContext,
StringReader stringReader)
ArgumentNodeparseCompletions in class ArgumentNode<E,java.util.List<T>>completions - The completionscompletionContext - The completion contextexecutionContext - The execution contextstringReader - The string reader