|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport groovy.lang.Closure org.crsh.command.CommandClosure org.crsh.command.ClassDispatcher
final class ClassDispatcher
Field Summary | |
---|---|
(package private) ShellCommand |
command . |
(package private) Object |
owner . |
Fields inherited from class org.crsh.command.CommandClosure |
---|
args, options |
Fields inherited from class groovy.lang.Closure |
---|
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF |
Constructor Summary | |
---|---|
ClassDispatcher(ShellCommand command, Object owner) |
Method Summary | |
---|---|
Object |
call(Object[] arguments) Closure invocation. |
(package private) Object |
dispatch(String methodName, Object[] arguments) |
Object |
getProperty(String property) |
Object |
invokeMethod(String name, Object args) |
private PipeCommandProxy<?,Object> |
resolvePipe(String name, Object[] args, boolean piped) |
Methods inherited from class org.crsh.command.CommandClosure |
---|
unwrapArgs |
Methods inherited from class groovy.lang.Closure |
---|
asWritable, call, call, clone, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampoline |
Methods inherited from class groovy.lang.GroovyObjectSupport |
---|
getMetaClass, setMetaClass |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final Object owner
final ShellCommand command
Constructor Detail |
---|
ClassDispatcher(ShellCommand command, Object owner)
Method Detail |
---|
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class groovy.lang.Closure
public Object invokeMethod(String name, Object args)
invokeMethod
in interface groovy.lang.GroovyObject
invokeMethod
in class CommandClosure
public Object call(Object[] arguments)
call
in class groovy.lang.Closure
arguments
- the closure argumentsObject dispatch(String methodName, Object[] arguments)
private PipeCommandProxy<?,Object> resolvePipe(String name, Object[] args, boolean piped)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |