public final class InvocationMatch<T> extends Object
Modifier and Type | Field and Description |
---|---|
private List<ArgumentMatch> |
arguments
.
|
private CommandDescriptor<T> |
descriptor
.
|
private Map<OptionDescriptor,OptionMatch> |
options
.
|
private InvocationMatch<T> |
owner
.
|
private String |
rest
.
|
Modifier | Constructor and Description |
---|---|
|
InvocationMatch(CommandDescriptor<T> descriptor) |
private |
InvocationMatch(InvocationMatch<T> owner,
CommandDescriptor<T> descriptor) |
Modifier and Type | Method and Description |
---|---|
void |
argument(ArgumentMatch argument) |
Collection<ArgumentMatch> |
arguments() |
CommandDescriptor<T> |
getDescriptor() |
CommandInvoker<T,?> |
getInvoker() |
<D extends ParameterDescriptor> |
getParameter(D parameter) |
String |
getRest() |
Object |
invoke(T command) |
void |
option(OptionMatch option) |
Collection<OptionMatch> |
options() |
InvocationMatch<T> |
owner() |
void |
setRest(String rest) |
InvocationMatch<T> |
subordinate(String name) |
private final CommandDescriptor<T> descriptor
private Map<OptionDescriptor,OptionMatch> options
private List<ArgumentMatch> arguments
private final InvocationMatch<T> owner
public InvocationMatch(CommandDescriptor<T> descriptor)
private InvocationMatch(InvocationMatch<T> owner, CommandDescriptor<T> descriptor)
public InvocationMatch<T> owner()
public InvocationMatch<T> subordinate(String name)
public CommandDescriptor<T> getDescriptor()
public final <D extends ParameterDescriptor> ParameterMatch<D> getParameter(D parameter)
public CommandInvoker<T,?> getInvoker()
public Object invoke(T command) throws InvocationException, SyntaxException
InvocationException
SyntaxException
public Collection<OptionMatch> options()
public void option(OptionMatch option)
public Collection<ArgumentMatch> arguments()
public void argument(ArgumentMatch argument)
Copyright © 2015 eXo Platform SAS. All Rights Reserved.