E - The type of the executorpublic class StringNode<E> extends ArgumentNode<E,java.lang.String>
ArgumentComparator of the command executor.providesArgument, weight| Constructor and Description |
|---|
StringNode(java.lang.String name) |
StringNode(java.lang.String name,
java.lang.String description) |
| 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 reader)
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 StringNode(java.lang.String name)
public StringNode(java.lang.String name,
@Nullable
java.lang.String description)
@Nonnull protected java.lang.String parseValue(ExecutionContext<E> executionContext, StringReader reader) throws ArgumentParseException, java.lang.RuntimeException
ArgumentNodeparseValue in class ArgumentNode<E,java.lang.String>executionContext - The execution contextreader - 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