KotlinClosure2

class KotlinClosure2<in T, in U, V : Any>(val function: (T, U) -> V?, owner: Any? = null, thisObject: Any? = null) : Closure<V?> (source)

Adapts a binary Kotlin function to a binary Groovy Closure.

Parameters

function

the function to be adapted.

owner

optional owner of the Closure.

thisObject

optional this Object of the Closure.

Type Parameters

T

the type of the first argument.

U

the type of the second argument.

V

the return type.

See also

Closure

Constructors

Link copied to clipboard
constructor(function: (T, U) -> V?, owner: Any? = null, thisObject: Any? = null)

Properties

Link copied to clipboard
open override var delegate: Any?
Link copied to clipboard
open override var directive: Int
Link copied to clipboard
val function: (T, U) -> V?
Link copied to clipboard
open override val maximumNumberOfParameters: Int
Link copied to clipboard
open var metaClass: MetaClass?
Link copied to clipboard
open override val owner: Any?
Link copied to clipboard
open override val parameterTypes: Array<out Class<*>?>?
Link copied to clipboard
open override var resolveStrategy: Int
Link copied to clipboard
open override val thisObject: Any?

Functions

Link copied to clipboard
open fun <W : Any?> andThen(other: Closure<W?>?): Closure<W?>?
Link copied to clipboard
open fun andThenSelf(): Closure<V?>?
open fun andThenSelf(times: Int): Closure<V?>?
Link copied to clipboard
open fun asWritable(): Closure<*>?
Link copied to clipboard
open fun call(arguments: Any?): V?
open fun call(vararg arguments: Any?): V?
open fun call(): V?
Link copied to clipboard
open fun clone(): Any
Link copied to clipboard
open fun compose(other: Closure<*>?): Closure<V?>?
Link copied to clipboard
open fun composeSelf(): Closure<V?>?
open fun composeSelf(times: Int): Closure<V?>?
Link copied to clipboard
open fun curry(argument: Any?): Closure<V?>?
open fun curry(vararg arguments: Any?): Closure<V?>?
Link copied to clipboard
open fun dehydrate(): Closure<V?>?
Link copied to clipboard
fun doCall(t: T, u: U): V?
Link copied to clipboard
open fun getProperty(property: String?): Any?
Link copied to clipboard
operator fun <T> Closure<T>.invoke(): T
operator fun <T> Closure<T>.invoke(x: Any?): T
operator fun <T> Closure<T>.invoke(vararg xs: Any?): T

Enables function invocation syntax on Closure references.

operator fun <V> Callable<V>.invoke(): V

Enables function invocation syntax on Callable references.

Link copied to clipboard
open fun invokeMethod(name: String?, args: Any?): Any?
Link copied to clipboard
open fun isCase(candidate: Any?): Boolean
Link copied to clipboard
open fun leftShift(other: Closure<*>?): Closure<V?>?
open fun leftShift(arg: Any?): V?
Link copied to clipboard
open fun memoize(): Closure<V?>?
Link copied to clipboard
open fun memoizeAtLeast(protectedCacheSize: Int): Closure<V?>?
Link copied to clipboard
open fun memoizeAtMost(maxCacheSize: Int): Closure<V?>?
Link copied to clipboard
open fun memoizeBetween(protectedCacheSize: Int, maxCacheSize: Int): Closure<V?>?
Link copied to clipboard
open fun ncurry(n: Int, argument: Any?): Closure<V?>?
open fun ncurry(n: Int, vararg arguments: Any?): Closure<V?>?
Link copied to clipboard
open fun rcurry(argument: Any?): Closure<V?>?
open fun rcurry(vararg arguments: Any?): Closure<V?>?
Link copied to clipboard
open fun rehydrate(delegate: Any?, owner: Any?, thisObject: Any?): Closure<V?>?
Link copied to clipboard
open fun <W : Any?> rightShift(other: Closure<W?>?): Closure<W?>?
Link copied to clipboard
open fun run()
Link copied to clipboard
open fun setProperty(property: String?, newValue: Any?)
Link copied to clipboard
open fun trampoline(): Closure<V?>?
open fun trampoline(vararg args: Any?): Closure<V?>?