org.crsh.lang.impl.groovy.closure
Class PipeLineClosure

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Closure
          extended by org.crsh.lang.impl.groovy.closure.PipeLineClosure
All Implemented Interfaces:
groovy.lang.GroovyCallable, groovy.lang.GroovyObject, Serializable, Cloneable, Runnable, Callable

public class PipeLineClosure
extends groovy.lang.Closure

Author:
Julien Viet
See Also:
Serialized Form

Field Summary
private  InvocationContext<Object> context
          .
private  PipeLineElement[] elements
          .
private static Object[] EMPTY_ARGS
          .
 
Fields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
 
Constructor Summary
PipeLineClosure(InvocationContext<Object> context, PipeLineElement[] elements)
           
PipeLineClosure(InvocationContext<Object> context, String name, Command<?> command)
           
 
Method Summary
private  Object _gdk(String name, Object[] args)
           
private  PipeLineClosure _sub(String name)
           
 PipeLineClosure bind(InvocationContext<Object> context)
           
 PipeLineInvoker bind(Object args)
           
 PipeLineInvoker bind(Object[] args)
           
 Object call(Object... args)
           
 Object find()
           
 Object find(groovy.lang.Closure closure)
           
 Object getProperty(String property)
           
 Object invokeMethod(String name, Object args)
           
private  PipeLineClosure options(Map<String,?> options, Object[] arguments)
           
 Object or(Object t)
           
(package private)  LinkedList<CommandInvoker> resolve2(Object[] args)
           
 String toString()
           
private static Object[] unwrapArgs(Object arguments)
           
 
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, wait, wait, wait
 

Field Detail

EMPTY_ARGS

private static final Object[] EMPTY_ARGS
.


context

private final InvocationContext<Object> context
.


elements

private PipeLineElement[] elements
.

Constructor Detail

PipeLineClosure

public PipeLineClosure(InvocationContext<Object> context,
                       String name,
                       Command<?> command)

PipeLineClosure

public PipeLineClosure(InvocationContext<Object> context,
                       PipeLineElement[] elements)
Method Detail

find

public Object find()

find

public Object find(groovy.lang.Closure closure)

_gdk

private Object _gdk(String name,
                    Object[] args)

or

public Object or(Object t)

_sub

private PipeLineClosure _sub(String name)

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

unwrapArgs

private static Object[] unwrapArgs(Object arguments)

options

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

call

public Object call(Object... args)
Overrides:
call in class groovy.lang.Closure

bind

public PipeLineClosure bind(InvocationContext<Object> context)

bind

public PipeLineInvoker bind(Object args)

bind

public PipeLineInvoker bind(Object[] args)

resolve2

LinkedList<CommandInvoker> resolve2(Object[] args)
                              throws CommandException
Throws:
CommandException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 eXo Platform SAS. All Rights Reserved.