class ClassDescriptor<T> extends ObjectCommandDescriptor<T>
Modifier and Type | Field and Description |
---|---|
private Map<String,MethodDescriptor<T>> |
methods
.
|
private Class<T> |
type
.
|
Constructor and Description |
---|
ClassDescriptor(Class<T> type,
String name,
Map<String,MethodDescriptor<T>> methods,
Description info) |
Modifier and Type | Method and Description |
---|---|
protected void |
addParameter(ParameterDescriptor parameter)
Add a parameter to the command.
|
ObjectCommandInvoker<T,?> |
getInvoker(InvocationMatch<Instance<T>> match) |
CommandDescriptor<Instance<T>> |
getOwner() |
Map<String,? extends MethodDescriptor<T>> |
getSubordinates() |
completer, getArgument, getArguments, getDepth, getDescription, getLongOptionNames, getName, getOption, getOptionNames, getOptions, getParameters, getShortOptionNames, getSubordinate, getUsage, matcher, print, printMan, printUsage, resolveOption
private final Map<String,MethodDescriptor<T>> methods
ClassDescriptor(Class<T> type, String name, Map<String,MethodDescriptor<T>> methods, Description info) throws IntrospectionException
IntrospectionException
protected void addParameter(ParameterDescriptor parameter) throws IntrospectionException
CommandDescriptor
addParameter
in class CommandDescriptor<Instance<T>>
parameter
- the parameter to addIntrospectionException
- any introspection exception that would prevent the parameter to be addedpublic ObjectCommandInvoker<T,?> getInvoker(InvocationMatch<Instance<T>> match)
getInvoker
in class CommandDescriptor<Instance<T>>
public CommandDescriptor<Instance<T>> getOwner()
getOwner
in class CommandDescriptor<Instance<T>>
public Map<String,? extends MethodDescriptor<T>> getSubordinates()
getSubordinates
in class CommandDescriptor<Instance<T>>
Copyright © 2015 eXo Platform SAS. All Rights Reserved.