public abstract class AbstractCommandType extends Object implements CommandType
CommandType.Setter, CommandType.Token
Constructor and Description |
---|
AbstractCommandType(Class<? extends Runnable> cmdClass,
List<CommandType.Setter> injectable,
Map<String,CommandType.Token> params,
List<CommandType.Token> args) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CommandType o) |
List<CommandType.Token> |
getArguments() |
Class<?> |
getCommandClass() |
jline.Completor |
getLastTokenCompletor(Shell shell,
String... line) |
Map<String,CommandType.Token> |
getParameters() |
String |
getSyntax() |
Runnable |
newInstance(Shell shell,
String... line) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAliases, getHelp, getName
public AbstractCommandType(Class<? extends Runnable> cmdClass, List<CommandType.Setter> injectable, Map<String,CommandType.Token> params, List<CommandType.Token> args)
public Class<?> getCommandClass()
getCommandClass
in interface CommandType
public List<CommandType.Token> getArguments()
getArguments
in interface CommandType
public Map<String,CommandType.Token> getParameters()
getParameters
in interface CommandType
public String getSyntax()
getSyntax
in interface CommandType
public Runnable newInstance(Shell shell, String... line) throws ShellException
newInstance
in interface CommandType
ShellException
public jline.Completor getLastTokenCompletor(Shell shell, String... line)
getLastTokenCompletor
in interface CommandType
public int compareTo(CommandType o)
compareTo
in interface Comparable<CommandType>
Copyright © 2015 Nuxeo SA. All rights reserved.