public class GroovyScriptShellCommand<T extends GroovyScriptCommand> extends ShellCommand<Instance<T>>
| Modifier and Type | Field and Description |
|---|---|
private Class<T> |
clazz
.
|
private CommandDescriptor<Instance<T>> |
descriptor
.
|
private boolean |
hasExplicitReturn
.
|
| Constructor and Description |
|---|
GroovyScriptShellCommand(Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
private T |
createCommand() |
protected Completer |
getCompleter(RuntimeContext context)
Returns a completer for this command.
|
CommandDescriptor<Instance<T>> |
getDescriptor()
Returns the command descriptor.
|
private CommandInvoker<Void,Object> |
getInvoker(String[] args) |
protected Command<?,?> |
resolveCommand(InvocationMatch<Instance<T>> match)
Resolve the real command for a specified invocation match.
|
complete, describe, describe, resolveCommand, resolveInvoker, resolveInvokerprivate final Class<T extends GroovyScriptCommand> clazz
private final boolean hasExplicitReturn
private final CommandDescriptor<Instance<T extends GroovyScriptCommand>> descriptor
public GroovyScriptShellCommand(Class<T> clazz)
public CommandDescriptor<Instance<T>> getDescriptor()
ShellCommandgetDescriptor in class ShellCommand<Instance<T extends GroovyScriptCommand>>protected Command<?,?> resolveCommand(InvocationMatch<Instance<T>> match)
ShellCommandresolveCommand in class ShellCommand<Instance<T extends GroovyScriptCommand>>match - the matchprivate T createCommand() throws CommandCreationException
CommandCreationExceptionprotected Completer getCompleter(RuntimeContext context) throws CommandCreationException
ShellCommandgetCompleter in class ShellCommand<Instance<T extends GroovyScriptCommand>>context - the related runtime contextCommandCreationException - anything that would prevent completion to happenprivate CommandInvoker<Void,Object> getInvoker(String[] args) throws CommandCreationException
CommandCreationExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.