E - The type of the executorT - The type of the argumentpublic class TypedNode<E,T> extends ArgumentNode<E,T>
ArgumentType which can be treated like a wrapper for argument nodes.providesArgument, weight| Constructor and Description |
|---|
TypedNode(java.lang.String name,
ArgumentType<E,T> type) |
TypedNode(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 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, parseCompletions, providesArgument, requirement, requires, then, then, validator, validator, value, weightpublic TypedNode(java.lang.String name,
ArgumentType<E,T> type)
public TypedNode(java.lang.String name,
@Nullable
java.lang.String description,
ArgumentType<E,T> type)
@Nonnull protected T parseValue(ExecutionContext<E> executionContext, StringReader stringReader) throws ArgumentParseException, java.lang.RuntimeException
ArgumentNodeparseValue in class ArgumentNode<E,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,T>completions - The completionscompletionContext - The completion contextexecutionContext - The execution contextstringReader - The string reader