org.crsh.command
Class CommandClosure

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

public class CommandClosure
extends groovy.lang.Closure

See Also:
Serialized Form

Field Summary
protected  ArrayList<Object> args
          .
protected  HashMap<String,Object> 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
CommandClosure(Object owner)
           
 
Method Summary
 Object invokeMethod(String name, Object args)
           
private  CommandClosure options(Map<?,?> options, Object[] arguments)
           
(package private) static Object[] unwrapArgs(Object arguments)
           
 
Methods inherited from class groovy.lang.Closure
asWritable, call, call, call, clone, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, 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

options

protected HashMap<String,Object> options
.


args

protected ArrayList<Object> args
.

Constructor Detail

CommandClosure

public CommandClosure(Object owner)
Method Detail

unwrapArgs

static Object[] unwrapArgs(Object arguments)

invokeMethod

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

options

private CommandClosure options(Map<?,?> options,
                               Object[] arguments)


Copyright © 2014 eXo Platform SAS. All Rights Reserved.