org.crsh.command
Class ClassDispatcher

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Closure
          extended by org.crsh.command.CommandClosure
              extended by org.crsh.command.ClassDispatcher
All Implemented Interfaces:
groovy.lang.GroovyCallable, groovy.lang.GroovyObject, Serializable, Cloneable, Runnable, Callable

final class ClassDispatcher
extends CommandClosure


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

owner

final Object owner
.


command

final ShellCommand command
.

Constructor Detail

ClassDispatcher

ClassDispatcher(ShellCommand command,
                Object owner)
Method Detail

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class groovy.lang.Closure

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class CommandClosure

call

public Object call(Object[] arguments)
Closure invocation.

Overrides:
call in class groovy.lang.Closure
Parameters:
arguments - the closure arguments

dispatch

Object dispatch(String methodName,
                Object[] arguments)

resolvePipe

private PipeCommandProxy<?,Object> resolvePipe(String name,
                                               Object[] args,
                                               boolean piped)


Copyright © 2014 eXo Platform SAS. All Rights Reserved.