org.crsh.cmdline.matcher
Class ClassMatch<T>
java.lang.Object
org.crsh.cmdline.matcher.CommandMatch<T,ClassDescriptor<T>,ClassFieldBinding>
org.crsh.cmdline.matcher.ClassMatch<T>
public class ClassMatch<T>
- extends CommandMatch<T,ClassDescriptor<T>,ClassFieldBinding>
- 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 ClassDescriptor<T> descriptor
- .
ClassMatch
public ClassMatch(ClassDescriptor<T> descriptor,
List<OptionMatch<ClassFieldBinding>> optionMatches,
List<ArgumentMatch<ClassFieldBinding>> argumentMatches,
String rest)
getDescriptor
public ClassDescriptor<T> getDescriptor()
- Specified by:
getDescriptor
in class CommandMatch<T,ClassDescriptor<T>,ClassFieldBinding>
printMan
public void printMan(Appendable writer)
throws IOException
- Specified by:
printMan
in class CommandMatch<T,ClassDescriptor<T>,ClassFieldBinding>
- Throws:
IOException
printUsage
public void printUsage(Appendable writer)
throws IOException
- Specified by:
printUsage
in class CommandMatch<T,ClassDescriptor<T>,ClassFieldBinding>
- Throws:
IOException
getParameters
public Set<ParameterDescriptor<?>> getParameters()
- Specified by:
getParameters
in class CommandMatch<T,ClassDescriptor<T>,ClassFieldBinding>
getParameterMatches
public List<ParameterMatch<?,?>> getParameterMatches()
- Specified by:
getParameterMatches
in class CommandMatch<T,ClassDescriptor<T>,ClassFieldBinding>
doInvoke
protected Object doInvoke(InvocationContext context,
T command,
Map<ParameterDescriptor<?>,Object> values)
throws CmdInvocationException,
CmdSyntaxException
- Specified by:
doInvoke
in class CommandMatch<T,ClassDescriptor<T>,ClassFieldBinding>
- Throws:
CmdInvocationException
CmdSyntaxException
Copyright © 2012 eXo Platform SAS. All Rights Reserved.