org.crsh.lang.impl.groovy.closure
Class PipeLineClosure
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Closure
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
Fields inherited from class groovy.lang.Closure |
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF |
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 |
EMPTY_ARGS
private static final Object[] EMPTY_ARGS
-
.
context
private final InvocationContext<Object> context
-
.
elements
private PipeLineElement[] elements
-
.
PipeLineClosure
public PipeLineClosure(InvocationContext<Object> context,
String name,
Command<?> command)
PipeLineClosure
public PipeLineClosure(InvocationContext<Object> context,
PipeLineElement[] elements)
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.