org.crsh.cli.impl.descriptor
Class CommandDescriptorImpl<T>
java.lang.Object
org.crsh.cli.descriptor.CommandDescriptor<T>
org.crsh.cli.impl.descriptor.CommandDescriptorImpl<T>
- Direct Known Subclasses:
- ClassDescriptor, HelpDescriptor, MethodDescriptor
-
public abstract class CommandDescriptorImpl<T>
- extends CommandDescriptor<T>
-
- Author:
Methods inherited from class org.crsh.cli.descriptor.CommandDescriptor |
addParameter, findOption, getArgument, getArguments, getDepth, getDescription, getLongOptionNames, getName, getOption, getOptionNames, getOptions, getOwner, getParameters, getShortOptionNames, getType, getUsage, printMan, printUsage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandDescriptorImpl
public CommandDescriptorImpl(String name,
Description description)
throws IntrospectionException
-
- Throws:
IntrospectionException
getSubordinates
public abstract Map<String,? extends CommandDescriptorImpl<T>> getSubordinates()
- Description copied from class:
CommandDescriptor
-
Returns the command subordinates as a map.
-
- Specified by:
getSubordinates
in class CommandDescriptor<T>
-
- Returns:
- the subordinates
getSubordinate
public abstract CommandDescriptorImpl<T> getSubordinate(String name)
-
- Specified by:
getSubordinate
in class CommandDescriptor<T>
-
getInvoker
public abstract CommandInvoker<T> getInvoker(InvocationMatch<T> match)
-
invoker
public final InvocationMatcher<T> invoker()
-
invoker
public final InvocationMatcher<T> invoker(String mainName)
-
completer
public final CompletionMatcher<T> completer()
-
completer
public final CompletionMatcher<T> completer(String mainName)
-
Copyright © 2014 eXo Platform SAS. All Rights Reserved.