org.crsh.cli.impl.invocation
Class InvocationMatch<T>
java.lang.Object
org.crsh.cli.impl.invocation.InvocationMatch<T>
-
public final class InvocationMatch<T>
- extends Object
-
- Author:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descriptor
private final CommandDescriptorImpl<T> descriptor
-
.
options
private Map<OptionDescriptor,OptionMatch> options
-
.
arguments
private List<ArgumentMatch> arguments
-
.
rest
private String rest
-
.
owner
private final InvocationMatch<T> owner
-
.
InvocationMatch
public InvocationMatch(CommandDescriptorImpl<T> descriptor)
InvocationMatch
private InvocationMatch(InvocationMatch<T> owner,
CommandDescriptorImpl<T> descriptor)
owner
public InvocationMatch<T> owner()
-
subordinate
public InvocationMatch<T> subordinate(String name)
-
getDescriptor
public CommandDescriptor<T> getDescriptor()
-
getParameter
public final <D extends ParameterDescriptor> ParameterMatch<D> getParameter(D parameter)
-
getInvoker
public CommandInvoker<T> getInvoker()
-
invoke
public Object invoke(T command)
throws InvocationException,
SyntaxException
-
- Throws:
InvocationException
SyntaxException
invoke
public Object invoke(Resolver resolver,
T command)
throws InvocationException,
SyntaxException
-
- Throws:
InvocationException
SyntaxException
options
public Collection<OptionMatch> options()
-
option
public void option(OptionMatch option)
-
arguments
public Collection<ArgumentMatch> arguments()
-
argument
public void argument(ArgumentMatch argument)
-
getRest
public String getRest()
-
setRest
public void setRest(String rest)
-
Copyright © 2014 eXo Platform SAS. All Rights Reserved.