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
 
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, org.crsh.lang.impl.groovy.closure.PipeLineElement[] elements)
           
PipeLineClosure(InvocationContext<Object> context, String name, Command<?> command)
           
 
Method Summary
 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)
           
 Object or(Object t)
           
 String toString()
           
 
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
 

Constructor Detail

PipeLineClosure

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

PipeLineClosure

public PipeLineClosure(InvocationContext<Object> context,
                       org.crsh.lang.impl.groovy.closure.PipeLineElement[] elements)
Method Detail

find

public Object find()

find

public Object find(groovy.lang.Closure closure)

or

public Object or(Object t)

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... 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)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 eXo Platform SAS. All Rights Reserved.