public class HelpDescriptor<T> extends CommandDescriptorImpl<T>
| Modifier and Type | Field and Description |
|---|---|
private CommandDescriptorImpl<T> |
delegate
.
|
(package private) static OptionDescriptor |
HELP_OPTION
.
|
private HelpDescriptor<T> |
owner
.
|
private LinkedHashMap<String,HelpDescriptor<T>> |
subordinates
.
|
| Modifier | Constructor and Description |
|---|---|
|
HelpDescriptor(CommandDescriptorImpl<T> delegate) |
private |
HelpDescriptor(HelpDescriptor<T> owner,
CommandDescriptorImpl<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
static <T> HelpDescriptor<T> |
create(CommandDescriptorImpl<T> descriptor) |
CommandDescriptor<T> |
getDelegate() |
CommandInvoker<T,?> |
getInvoker(InvocationMatch<T> match) |
CommandDescriptor<T> |
getOwner() |
HelpDescriptor<T> |
getSubordinate(String name) |
Map<String,? extends HelpDescriptor<T>> |
getSubordinates()
Returns the command subordinates as a map.
|
Class<T> |
getType() |
completer, completer, invoker, invokeraddParameter, findOption, getArgument, getArguments, getDepth, getDescription, getLongOptionNames, getName, getOption, getOptionNames, getOptions, getParameters, getShortOptionNames, getUsage, printMan, printUsagestatic final OptionDescriptor HELP_OPTION
private final HelpDescriptor<T> owner
private final CommandDescriptorImpl<T> delegate
private final LinkedHashMap<String,HelpDescriptor<T>> subordinates
public HelpDescriptor(CommandDescriptorImpl<T> delegate) throws IntrospectionException
IntrospectionExceptionprivate HelpDescriptor(HelpDescriptor<T> owner, CommandDescriptorImpl<T> delegate) throws IntrospectionException
IntrospectionExceptionpublic static <T> HelpDescriptor<T> create(CommandDescriptorImpl<T> descriptor)
public CommandDescriptor<T> getDelegate()
public CommandInvoker<T,?> getInvoker(InvocationMatch<T> match)
getInvoker in class CommandDescriptorImpl<T>public CommandDescriptor<T> getOwner()
getOwner in class CommandDescriptor<T>public Map<String,? extends HelpDescriptor<T>> getSubordinates()
CommandDescriptorgetSubordinates in class CommandDescriptorImpl<T>public HelpDescriptor<T> getSubordinate(String name)
getSubordinate in class CommandDescriptorImpl<T>Copyright © 2013 eXo Platform SAS. All Rights Reserved.