org.crsh.cli.impl.descriptor
Class HelpDescriptor<T>
java.lang.Object
org.crsh.cli.descriptor.CommandDescriptor<T>
org.crsh.cli.impl.descriptor.CommandDescriptorImpl<T>
org.crsh.cli.impl.descriptor.HelpDescriptor<T>
-
public class HelpDescriptor<T>
- extends CommandDescriptorImpl<T>
-
- Author:
Methods inherited from class org.crsh.cli.descriptor.CommandDescriptor |
addParameter, findOption, getArgument, getArguments, getDepth, getDescription, getLongOptionNames, getName, getOption, getOptionNames, getOptions, getParameters, getShortOptionNames, getUsage, printMan, printUsage |
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 CommandDescriptorImpl<T> delegate
-
.
subordinates
private final LinkedHashMap<String,HelpDescriptor<T>> subordinates
-
.
HelpDescriptor
public HelpDescriptor(CommandDescriptorImpl<T> delegate)
throws IntrospectionException
-
- Throws:
IntrospectionException
HelpDescriptor
private HelpDescriptor(HelpDescriptor<T> owner,
CommandDescriptorImpl<T> delegate)
throws IntrospectionException
-
- Throws:
IntrospectionException
create
public static <T> HelpDescriptor<T> create(CommandDescriptorImpl<T> descriptor)
-
getDelegate
public CommandDescriptor<T> getDelegate()
-
getInvoker
public CommandInvoker<T> getInvoker(InvocationMatch<T> match)
-
- Specified by:
getInvoker
in class CommandDescriptorImpl<T>
-
getType
public Class<T> getType()
-
- Specified by:
getType
in class CommandDescriptor<T>
-
getOwner
public CommandDescriptor<T> getOwner()
-
- Specified by:
getOwner
in class CommandDescriptor<T>
-
getSubordinates
public Map<String,? extends HelpDescriptor<T>> getSubordinates()
- Description copied from class:
CommandDescriptor
-
Returns the command subordinates as a map.
-
- Specified by:
getSubordinates
in class CommandDescriptorImpl<T>
-
- Returns:
- the subordinates
getSubordinate
public HelpDescriptor<T> getSubordinate(String name)
-
- Specified by:
getSubordinate
in class CommandDescriptorImpl<T>
-
Copyright © 2014 eXo Platform SAS. All Rights Reserved.