|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.shell.impl.command.spi.Command<Instance<T>> org.crsh.lang.impl.groovy.command.GroovyScriptShellCommand<T>
public class GroovyScriptShellCommand<T extends GroovyScriptCommand>
Field Summary | |
---|---|
private Class<T> |
clazz
. |
private CommandDescriptor<Instance<T>> |
descriptor
. |
private boolean |
hasExplicitReturn
. |
Constructor Summary | |
---|---|
GroovyScriptShellCommand(Class<T> clazz)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.crsh.shell.impl.command.spi.Command |
---|
complete, describe, describe, resolveCommand, resolveCommand, resolveInvoker |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Class<T extends GroovyScriptCommand> clazz
private final boolean hasExplicitReturn
private final CommandDescriptor<Instance<T extends GroovyScriptCommand>> descriptor
Constructor Detail |
---|
public GroovyScriptShellCommand(Class<T> clazz) throws IntrospectionException
IntrospectionException
Method Detail |
---|
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 match
private 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 context
CommandException
- anything that would prevent completion to happenprivate CommandInvoker<Void,Object> getInvoker(String[] args) throws CommandException
CommandException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |