|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport groovy.lang.Closure<java.lang.Void> groovyx.gpars.dataflow.operator.BinaryChoiceClosure
public final class BinaryChoiceClosure
Used by the chainWith() method to wrap the supplied closure inside the operator's body. This wrapper closure is responsible for writing the calculated result into the operator's output through its bind() methods.
Field Summary | |
---|---|
private groovy.lang.Closure<java.lang.Boolean> |
code
|
Fields inherited from class groovy.lang.Closure |
---|
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF |
Constructor Summary | |
---|---|
BinaryChoiceClosure(groovy.lang.Closure<java.lang.Boolean> code)
|
Method Summary | |
---|---|
java.lang.Void |
call()
|
java.lang.Void |
call(java.lang.Object... args)
|
java.lang.Void |
call(java.lang.Object arguments)
|
int |
getMaximumNumberOfParameters()
|
java.lang.Class[] |
getParameterTypes()
|
void |
setDelegate(java.lang.Object delegate)
|
void |
setResolveStrategy(int resolveStrategy)
|
Methods inherited from class groovy.lang.Closure |
---|
asWritable, clone, curry, curry, dehydrate, getDelegate, getDirective, getOwner, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDirective, setProperty, throwRuntimeException, trampoline, trampoline |
Methods inherited from class groovy.lang.GroovyObjectSupport |
---|
getMetaClass, invokeMethod, setMetaClass |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final groovy.lang.Closure<java.lang.Boolean> code
Constructor Detail |
---|
public BinaryChoiceClosure(groovy.lang.Closure<java.lang.Boolean> code)
Method Detail |
---|
public int getMaximumNumberOfParameters()
getMaximumNumberOfParameters
in class groovy.lang.Closure<java.lang.Void>
public java.lang.Class[] getParameterTypes()
getParameterTypes
in class groovy.lang.Closure<java.lang.Void>
public void setDelegate(java.lang.Object delegate)
setDelegate
in class groovy.lang.Closure<java.lang.Void>
public void setResolveStrategy(int resolveStrategy)
setResolveStrategy
in class groovy.lang.Closure<java.lang.Void>
public java.lang.Void call(java.lang.Object arguments)
call
in class groovy.lang.Closure<java.lang.Void>
public java.lang.Void call(java.lang.Object... args)
call
in class groovy.lang.Closure<java.lang.Void>
public java.lang.Void call()
call
in interface java.util.concurrent.Callable<java.lang.Void>
call
in class groovy.lang.Closure<java.lang.Void>
|
Copyright © 2008–2012 Václav Pech. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |