E - The type of the executorpublic class StringArrayNode<E> extends ArgumentNode<E,java.lang.String[]>
| Modifier and Type | Class and Description |
|---|---|
static interface |
StringArrayNode.Completor<E>
The completor interface for the string array node.
|
static interface |
StringArrayNode.Executor<E>
The executor interface for the string array node.
|
providesArgument, weight| Constructor and Description |
|---|
StringArrayNode(java.lang.String name,
StringArrayNode.Completor<E> completor) |
StringArrayNode(java.lang.String name,
java.lang.String description,
StringArrayNode.Completor<E> completor) |
| 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.lang.String[] |
parseValue(ExecutionContext<E> executionContext,
StringReader stringReader)
Parse the value of this argument.
|
children, completions, completionsProvider, description, exceptionHandler, exceptionHandler, executes, executes, executes, executes, executor, name, parseCompletions, providesArgument, requirement, requires, then, then, validator, validator, value, weightpublic StringArrayNode(java.lang.String name,
@Nullable
StringArrayNode.Completor<E> completor)
public StringArrayNode(java.lang.String name,
@Nullable
java.lang.String description,
@Nullable
StringArrayNode.Completor<E> completor)
@Nonnull protected java.lang.String[] parseValue(ExecutionContext<E> executionContext, StringReader stringReader) throws ArgumentParseException, java.lang.RuntimeException
ArgumentNodeparseValue in class ArgumentNode<E,java.lang.String[]>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.lang.String[]>completions - The completionscompletionContext - The completion contextexecutionContext - The execution contextstringReader - The string reader