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, resolveInvoker
private 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
IntrospectionException
public CommandDescriptor<Instance<T>> getDescriptor()
Command
getDescriptor
in class Command<Instance<T extends GroovyScriptCommand>>
protected CommandMatch<?,?> resolve(InvocationMatch<Instance<T>> match)
Command
resolve
in class Command<Instance<T extends GroovyScriptCommand>>
match
- the matchprivate T createCommand() throws CommandException
CommandException
protected Completer getCompleter(RuntimeContext context) throws CommandException
Command
getCompleter
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
CommandException
Copyright © 2015 eXo Platform SAS. All Rights Reserved.