org.crsh.cli.impl.descriptor
Class HelpDescriptor<T>
java.lang.Object
org.crsh.cli.descriptor.CommandDescriptor<T>
org.crsh.cli.impl.descriptor.HelpDescriptor<T>
public class HelpDescriptor<T>
- extends CommandDescriptor<T>
- Author:
- Julien Viet
Methods inherited from class org.crsh.cli.descriptor.CommandDescriptor |
addParameter, completer, getArgument, getArguments, getDepth, getDescription, getLongOptionNames, getName, getOption, getOptionNames, getOptions, getParameters, getShortOptionNames, getSubordinate, getUsage, matcher, print, printMan, printUsage, resolveOption |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HELP_OPTION
static final OptionDescriptor HELP_OPTION
- .
owner
private final HelpDescriptor<T> owner
- .
delegate
private final CommandDescriptor<T> delegate
- .
subordinates
private final LinkedHashMap<String,HelpDescriptor<T>> subordinates
- .
HelpDescriptor
public HelpDescriptor(CommandDescriptor<T> delegate)
throws IntrospectionException
- Throws:
IntrospectionException
HelpDescriptor
private HelpDescriptor(HelpDescriptor<T> owner,
CommandDescriptor<T> delegate)
throws IntrospectionException
- Throws:
IntrospectionException
create
public static <T> HelpDescriptor<T> create(CommandDescriptor<T> descriptor)
throws IntrospectionException
- Throws:
IntrospectionException
getDelegate
public CommandDescriptor<T> getDelegate()
getInvoker
public CommandInvoker<T,?> getInvoker(InvocationMatch<T> match)
- Specified by:
getInvoker
in class CommandDescriptor<T>
getOwner
public CommandDescriptor<T> getOwner()
- Specified by:
getOwner
in class CommandDescriptor<T>
getSubordinates
public Map<String,? extends HelpDescriptor<T>> getSubordinates()
- Specified by:
getSubordinates
in class CommandDescriptor<T>
- Returns:
- the command subordinates as a map.
Copyright © 2015 eXo Platform SAS. All Rights Reserved.