public class GroovyScriptShellCommand<T extends GroovyScriptCommand> extends Command<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 CommandMatch<?,?> |
resolve(InvocationMatch<Instance<T>> match)
Resolve the real match for a specified invocation match.
|
complete, describe, describe, resolveCommand, resolveCommand, resolveInvokerprivate final Class<T extends GroovyScriptCommand> clazz
private final boolean hasExplicitReturn
private final CommandDescriptor<Instance<T extends GroovyScriptCommand>> descriptor
public GroovyScriptShellCommand(Class<T> clazz) throws IntrospectionException
IntrospectionExceptionpublic CommandDescriptor<Instance<T>> getDescriptor()
CommandgetDescriptor in class Command<Instance<T extends GroovyScriptCommand>>protected CommandMatch<?,?> resolve(InvocationMatch<Instance<T>> match)
Commandresolve in class Command<Instance<T extends GroovyScriptCommand>>match - the matchprivate T createCommand() throws CommandException
CommandExceptionprotected Completer getCompleter(RuntimeContext context) throws CommandException
CommandgetCompleter in class Command<Instance<T extends GroovyScriptCommand>>context - the related runtime contextCommandException - anything that would prevent completion to happenprivate CommandInvoker<Void,Object> getInvoker(String[] args) throws CommandException
CommandExceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.