class ClassDescriptor<T> extends CommandDescriptorImpl<T>
| Modifier and Type | Field and Description |
|---|---|
private Map<String,MethodDescriptor<T>> |
methods
.
|
private Class<T> |
type
.
|
| Constructor and Description |
|---|
ClassDescriptor(Class<T> type,
Map<String,MethodDescriptor<T>> methods,
Description info) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameter(ParameterDescriptor parameter)
Add a parameter to the command.
|
(package private) void |
configure(InvocationMatch<T> classMatch,
T command) |
CommandInvoker<T,?> |
getInvoker(InvocationMatch<T> match) |
CommandDescriptor<T> |
getOwner() |
MethodDescriptor<T> |
getSubordinate(String name) |
Map<String,? extends MethodDescriptor<T>> |
getSubordinates()
Returns the command subordinates as a map.
|
Class<T> |
getType() |
completer, completer, invoker, invokerfindOption, getArgument, getArguments, getDepth, getDescription, getLongOptionNames, getName, getOption, getOptionNames, getOptions, getParameters, getShortOptionNames, getUsage, printMan, printUsageprivate final Map<String,MethodDescriptor<T>> methods
ClassDescriptor(Class<T> type, Map<String,MethodDescriptor<T>> methods, Description info) throws IntrospectionException
IntrospectionExceptionprotected void addParameter(ParameterDescriptor parameter) throws IntrospectionException
CommandDescriptoraddParameter in class CommandDescriptor<T>parameter - the parameter to addIntrospectionException - any introspection exception that would prevent the parameter to be addedpublic CommandInvoker<T,?> getInvoker(InvocationMatch<T> match)
getInvoker in class CommandDescriptorImpl<T>void configure(InvocationMatch<T> classMatch, T command) throws InvocationException, SyntaxException
InvocationExceptionSyntaxExceptionpublic CommandDescriptor<T> getOwner()
getOwner in class CommandDescriptor<T>public Map<String,? extends MethodDescriptor<T>> getSubordinates()
CommandDescriptorgetSubordinates in class CommandDescriptorImpl<T>public MethodDescriptor<T> getSubordinate(String name)
getSubordinate in class CommandDescriptorImpl<T>Copyright © 2013 eXo Platform SAS. All Rights Reserved.