public class CommandContext<S> extends Object
| Constructor and Description |
|---|
CommandContext(S source,
String input,
Map<String,ParsedArgument<S,?>> arguments,
Command<S> command,
CommandNode<S> rootNode,
List<ParsedCommandNode<S>> nodes,
StringRange range,
CommandContext<S> child,
RedirectModifier<S> modifier,
boolean forks) |
| Modifier and Type | Method and Description |
|---|---|
CommandContext<S> |
copyFor(S source) |
boolean |
equals(Object o) |
<V> V |
getArgument(String name,
Class<V> clazz) |
CommandContext<S> |
getChild() |
Command<S> |
getCommand() |
String |
getInput() |
CommandContext<S> |
getLastChild() |
List<ParsedCommandNode<S>> |
getNodes() |
StringRange |
getRange() |
RedirectModifier<S> |
getRedirectModifier() |
CommandNode<S> |
getRootNode() |
S |
getSource() |
int |
hashCode() |
boolean |
hasNodes() |
boolean |
isForked() |
public CommandContext(S source, String input, Map<String,ParsedArgument<S,?>> arguments, Command<S> command, CommandNode<S> rootNode, List<ParsedCommandNode<S>> nodes, StringRange range, CommandContext<S> child, RedirectModifier<S> modifier, boolean forks)
public CommandContext<S> copyFor(S source)
public CommandContext<S> getChild()
public CommandContext<S> getLastChild()
public S getSource()
public RedirectModifier<S> getRedirectModifier()
public StringRange getRange()
public String getInput()
public CommandNode<S> getRootNode()
public List<ParsedCommandNode<S>> getNodes()
public boolean hasNodes()
public boolean isForked()
Copyright © 2018. All rights reserved.