|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.cli.impl.invocation.InvocationMatch<T>
public final class InvocationMatch<T>
Field Summary | |
---|---|
private List<ArgumentMatch> |
arguments
. |
private CommandDescriptorImpl<T> |
descriptor
. |
private Map<OptionDescriptor,OptionMatch> |
options
. |
private InvocationMatch<T> |
owner
. |
private String |
rest
. |
Constructor Summary | |
---|---|
|
InvocationMatch(CommandDescriptorImpl<T> descriptor)
|
private |
InvocationMatch(InvocationMatch<T> owner,
CommandDescriptorImpl<T> descriptor)
|
Method Summary | ||
---|---|---|
void |
argument(ArgumentMatch argument)
|
|
Collection<ArgumentMatch> |
arguments()
|
|
CommandDescriptor<T> |
getDescriptor()
|
|
CommandInvoker<T> |
getInvoker()
|
|
|
getParameter(D parameter)
|
|
String |
getRest()
|
|
Object |
invoke(Resolver resolver,
T command)
|
|
Object |
invoke(T command)
|
|
void |
option(OptionMatch option)
|
|
Collection<OptionMatch> |
options()
|
|
InvocationMatch<T> |
owner()
|
|
void |
setRest(String rest)
|
|
InvocationMatch<T> |
subordinate(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final CommandDescriptorImpl<T> descriptor
private Map<OptionDescriptor,OptionMatch> options
private List<ArgumentMatch> arguments
private String rest
private final InvocationMatch<T> owner
Constructor Detail |
---|
public InvocationMatch(CommandDescriptorImpl<T> descriptor)
private InvocationMatch(InvocationMatch<T> owner, CommandDescriptorImpl<T> descriptor)
Method Detail |
---|
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 Object invoke(Resolver resolver, 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)
public String getRest()
public void setRest(String rest)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |