public class HelpDescriptor<T> extends CommandDescriptor<T>
Modifier and Type | Field and Description |
---|---|
private CommandDescriptor<T> |
delegate
.
|
(package private) static OptionDescriptor |
HELP_OPTION
.
|
private HelpDescriptor<T> |
owner
.
|
private LinkedHashMap<String,HelpDescriptor<T>> |
subordinates
.
|
Modifier | Constructor and Description |
---|---|
|
HelpDescriptor(CommandDescriptor<T> delegate) |
private |
HelpDescriptor(HelpDescriptor<T> owner,
CommandDescriptor<T> delegate) |
Modifier and Type | Method and Description |
---|---|
static <T> HelpDescriptor<T> |
create(CommandDescriptor<T> descriptor) |
CommandDescriptor<T> |
getDelegate() |
CommandInvoker<T,?> |
getInvoker(InvocationMatch<T> match) |
CommandDescriptor<T> |
getOwner() |
Map<String,? extends HelpDescriptor<T>> |
getSubordinates() |
addParameter, completer, getArgument, getArguments, getDepth, getDescription, getLongOptionNames, getName, getOption, getOptionNames, getOptions, getParameters, getShortOptionNames, getSubordinate, getUsage, matcher, print, printMan, printUsage, resolveOption
static final OptionDescriptor HELP_OPTION
private final HelpDescriptor<T> owner
private final CommandDescriptor<T> delegate
private final LinkedHashMap<String,HelpDescriptor<T>> subordinates
public HelpDescriptor(CommandDescriptor<T> delegate) throws IntrospectionException
IntrospectionException
private HelpDescriptor(HelpDescriptor<T> owner, CommandDescriptor<T> delegate) throws IntrospectionException
IntrospectionException
public static <T> HelpDescriptor<T> create(CommandDescriptor<T> descriptor) throws IntrospectionException
IntrospectionException
public CommandDescriptor<T> getDelegate()
public CommandInvoker<T,?> getInvoker(InvocationMatch<T> match)
getInvoker
in class CommandDescriptor<T>
public CommandDescriptor<T> getOwner()
getOwner
in class CommandDescriptor<T>
public Map<String,? extends HelpDescriptor<T>> getSubordinates()
getSubordinates
in class CommandDescriptor<T>
Copyright © 2015 eXo Platform SAS. All Rights Reserved.