public class DefaultCommandType extends AbstractCommandType
Modifier and Type | Class and Description |
---|---|
static class |
DefaultCommandType.FieldSetter |
static class |
DefaultCommandType.MethodSetter |
CommandType.Setter, CommandType.Token
Modifier and Type | Field and Description |
---|---|
protected List<CommandType.Token> |
args |
protected List<CommandType.Setter> |
injectable |
protected Map<String,CommandType.Token> |
params |
cmdClass
Constructor and Description |
---|
DefaultCommandType(Class<? extends Runnable> cmdClass,
List<CommandType.Setter> injectable,
Map<String,CommandType.Token> params,
List<CommandType.Token> args) |
Modifier and Type | Method and Description |
---|---|
static DefaultCommandType |
fromAnnotatedClass(Class<? extends Runnable> cls) |
static DefaultCommandType |
fromAnnotatedClass(String className) |
String[] |
getAliases() |
String |
getHelp() |
String |
getName() |
compareTo, createInstance, getArguments, getCommandClass, getLastToken, getLastTokenCompletor, getParamCompletor, getParameters, getSyntax, inject, newInstance
protected List<CommandType.Setter> injectable
protected Map<String,CommandType.Token> params
protected List<CommandType.Token> args
public DefaultCommandType(Class<? extends Runnable> cmdClass, List<CommandType.Setter> injectable, Map<String,CommandType.Token> params, List<CommandType.Token> args)
public static DefaultCommandType fromAnnotatedClass(String className) throws ShellException
ShellException
public static DefaultCommandType fromAnnotatedClass(Class<? extends Runnable> cls) throws ShellException
ShellException
public String[] getAliases()
Copyright © 2017 Nuxeo. All rights reserved.