public class CommandContextBuilder<S>
extends java.lang.Object
| Constructor and Description |
|---|
CommandContextBuilder(CommandDispatcher<S> dispatcher,
S source,
CommandNode<S> rootNode,
int start) |
| Modifier and Type | Method and Description |
|---|---|
CommandContext<S> |
build(java.lang.String input) |
CommandContextBuilder<S> |
copy() |
SuggestionContext<S> |
findSuggestionContext(int cursor) |
java.util.Map<java.lang.String,ParsedArgument<S,?>> |
getArguments() |
CommandContextBuilder<S> |
getChild() |
Command<S> |
getCommand() |
CommandDispatcher<S> |
getDispatcher() |
CommandContextBuilder<S> |
getLastChild() |
java.util.List<ParsedCommandNode<S>> |
getNodes() |
StringRange |
getRange() |
CommandNode<S> |
getRootNode() |
S |
getSource() |
CommandContextBuilder<S> |
withArgument(java.lang.String name,
ParsedArgument<S,?> argument) |
CommandContextBuilder<S> |
withChild(CommandContextBuilder<S> child) |
CommandContextBuilder<S> |
withCommand(Command<S> command) |
CommandContextBuilder<S> |
withNode(CommandNode<S> node,
StringRange range) |
CommandContextBuilder<S> |
withSource(S source) |
public CommandContextBuilder(CommandDispatcher<S> dispatcher, S source, CommandNode<S> rootNode, int start)
public CommandContextBuilder<S> withSource(S source)
public S getSource()
public CommandNode<S> getRootNode()
public CommandContextBuilder<S> withArgument(java.lang.String name, ParsedArgument<S,?> argument)
public java.util.Map<java.lang.String,ParsedArgument<S,?>> getArguments()
public CommandContextBuilder<S> withCommand(Command<S> command)
public CommandContextBuilder<S> withNode(CommandNode<S> node, StringRange range)
public CommandContextBuilder<S> copy()
public CommandContextBuilder<S> withChild(CommandContextBuilder<S> child)
public CommandContextBuilder<S> getChild()
public CommandContextBuilder<S> getLastChild()
public java.util.List<ParsedCommandNode<S>> getNodes()
public CommandContext<S> build(java.lang.String input)
public CommandDispatcher<S> getDispatcher()
public StringRange getRange()
public SuggestionContext<S> findSuggestionContext(int cursor)