org.crsh.command
Class CommandDispatcher

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

final class CommandDispatcher
extends groovy.lang.Closure

Author:
Julien Viet

Field Summary
(package private)  ShellCommand command
          .
(package private)  InvocationContext ic
          .
 
Fields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
 
Constructor Summary
CommandDispatcher(ShellCommand command, InvocationContext ic)
           
 
Method Summary
 Object call(Object[] arguments)
          Closure invocation.
(package private)  Object dispatch(String methodName, Object arguments)
           
(package private)  Object dispatch(String name, Object[] args)
           
 Object getProperty(String property)
           
 Object invokeMethod(String name, Object args)
           
 
Methods inherited from class groovy.lang.Closure
asWritable, call, call, clone, curry, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getResolveStrategy, getThisObject, isCase, ncurry, rcurry, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException
 
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

ic

final InvocationContext ic
.


command

final ShellCommand command
.

Constructor Detail

CommandDispatcher

CommandDispatcher(ShellCommand command,
                  InvocationContext ic)
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 groovy.lang.GroovyObjectSupport

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)

dispatch

Object dispatch(String name,
                Object[] args)


Copyright © 2012 eXo Platform SAS. All Rights Reserved.