Package org.apache.groovy.util
Class Closures.FunctionClosure<T,R>
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Closure<R>
org.apache.groovy.util.Closures.FunctionClosure<T,R>
- All Implemented Interfaces:
GroovyCallable<R>,GroovyObject,Serializable,Cloneable,Runnable,Callable<R>,Function<T,R>
- Enclosing class:
- Closures
- Since:
- 6.0.0
- See Also:
-
Field Summary
Fields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[]Exposes the wrapped Function, which the call methods dispatch to but which is held outside theowner/delegate/thisObjectreferences the cycle check walks by default.Invokes the closure with given argument(s), returning any value if applicable.Invokes the closure with given argument(s), returning any value if applicable.Methods inherited from class groovy.lang.Closure
andThen, andThenSelf, andThenSelf, asWritable, call, checkForReferenceCycle, clone, compose, composeSelf, composeSelf, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, mopUnperturbed, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setMetaClass, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampolineMethods inherited from class groovy.lang.GroovyObjectSupport
getMetaClassMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
invokeMethod
-
Method Details
-
apply
-
call
Description copied from class:ClosureInvokes the closure with given argument(s), returning any value if applicable. -
call
Description copied from class:ClosureInvokes the closure with given argument(s), returning any value if applicable. -
additionalReferences
Exposes the wrapped Function, which the call methods dispatch to but which is held outside theowner/delegate/thisObjectreferences the cycle check walks by default. OnlyClosure-valued links are followed, so a plain Function contributes nothing.- Overrides:
additionalReferencesin classClosure<R>- Returns:
- the additional closures reached when this one is invoked; never
null
-