groovyx.gpars.pa
Class CallClosure<V>

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Closure<V>
          extended by groovyx.gpars.pa.CallClosure<V>
All Implemented Interfaces:
groovy.lang.GroovyCallable<V>, groovy.lang.GroovyObject, java.io.Serializable, java.lang.Cloneable, java.lang.Runnable, java.util.concurrent.Callable<V>

public final class CallClosure<V>
extends groovy.lang.Closure<V>

A call-forwarding closure

Author:
Vaclav Pech
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  groovy.lang.Closure<V> target
           
 
Fields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
 
Constructor Summary
CallClosure(groovy.lang.Closure<V> target)
           
 
Method Summary
 V call()
           
 V call(java.lang.Object arguments)
           
 V call(java.lang.Object[] args)
           
 java.lang.Object clone()
           
 
Methods inherited from class groovy.lang.Closure
asWritable, 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, invokeMethod, setMetaClass
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

private final groovy.lang.Closure<V> target

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

CallClosure

public CallClosure(groovy.lang.Closure<V> target)
Method Detail

call

public V call(java.lang.Object[] args)
Overrides:
call in class groovy.lang.Closure<V>

call

public V call()
Specified by:
call in interface java.util.concurrent.Callable<V>
Overrides:
call in class groovy.lang.Closure<V>

call

public V call(java.lang.Object arguments)
Overrides:
call in class groovy.lang.Closure<V>

clone

public java.lang.Object clone()
Overrides:
clone in class groovy.lang.Closure<V>

Copyright © 2008–2012 Václav Pech. All Rights Reserved.