org.crsh.cmdline.matcher
Class MethodMatch<T>
java.lang.Object
org.crsh.cmdline.matcher.CommandMatch<T,MethodDescriptor<T>,MethodArgumentBinding>
org.crsh.cmdline.matcher.MethodMatch<T>
public class MethodMatch<T>
- extends CommandMatch<T,MethodDescriptor<T>,MethodArgumentBinding>
- Version:
- $Revision$
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descriptor
private final MethodDescriptor<T> descriptor
- .
owner
private final ClassMatch<T> owner
- .
implicit
private final boolean implicit
- .
MethodMatch
public MethodMatch(ClassMatch<T> owner,
MethodDescriptor<T> descriptor,
boolean implicit,
List<OptionMatch<MethodArgumentBinding>> optionMatches,
List<ArgumentMatch<MethodArgumentBinding>> argumentMatches,
String rest)
isImplicit
public boolean isImplicit()
getDescriptor
public MethodDescriptor<T> getDescriptor()
- Specified by:
getDescriptor
in class CommandMatch<T,MethodDescriptor<T>,MethodArgumentBinding>
getOwner
public ClassMatch<T> getOwner()
printMan
public void printMan(Appendable writer)
throws IOException
- Specified by:
printMan
in class CommandMatch<T,MethodDescriptor<T>,MethodArgumentBinding>
- Throws:
IOException
printUsage
public void printUsage(Appendable writer)
throws IOException
- Specified by:
printUsage
in class CommandMatch<T,MethodDescriptor<T>,MethodArgumentBinding>
- Throws:
IOException
getParameters
public Set<ParameterDescriptor<?>> getParameters()
- Specified by:
getParameters
in class CommandMatch<T,MethodDescriptor<T>,MethodArgumentBinding>
getParameterMatches
public List<ParameterMatch<?,?>> getParameterMatches()
- Specified by:
getParameterMatches
in class CommandMatch<T,MethodDescriptor<T>,MethodArgumentBinding>
doInvoke
protected Object doInvoke(InvocationContext context,
T command,
Map<ParameterDescriptor<?>,Object> values)
throws CmdInvocationException,
CmdSyntaxException
- Specified by:
doInvoke
in class CommandMatch<T,MethodDescriptor<T>,MethodArgumentBinding>
- Throws:
CmdInvocationException
CmdSyntaxException
Copyright © 2012 eXo Platform SAS. All Rights Reserved.