org.crsh.cli.impl.descriptor
Class CommandDescriptorImpl<T>

java.lang.Object
  extended by org.crsh.cli.descriptor.CommandDescriptor<T>
      extended by org.crsh.cli.impl.descriptor.CommandDescriptorImpl<T>
Direct Known Subclasses:
ClassDescriptor, HelpDescriptor, MethodDescriptor

public abstract class CommandDescriptorImpl<T>
extends CommandDescriptor<T>

Author:
Julien Viet

Constructor Summary
CommandDescriptorImpl(String name, Description description)
           
 
Method Summary
 CompletionMatcher<T> completer()
           
 CompletionMatcher<T> completer(String mainName)
           
abstract  CommandInvoker<T> getInvoker(InvocationMatch<T> match)
           
abstract  CommandDescriptorImpl<T> getSubordinate(String name)
           
abstract  Map<String,? extends CommandDescriptorImpl<T>> getSubordinates()
          Returns the command subordinates as a map.
 InvocationMatcher<T> invoker()
           
 InvocationMatcher<T> invoker(String mainName)
           
 
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
 

Constructor Detail

CommandDescriptorImpl

public CommandDescriptorImpl(String name,
                             Description description)
                      throws IntrospectionException
Throws:
IntrospectionException
Method Detail

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.