KotlinClosure0

open class KotlinClosure0<V : Any>(val function: () -> V?, owner: Any? = null, thisObject: Any? = null) : Closure<V?> (source)

Adapts a parameterless Kotlin function to a parameterless Groovy Closure.

Parameters

V

the return type.

function

the function to be adapted.

owner

optional owner of the Closure.

thisObject

optional this Object of the Closure.

See also

Closure

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val function: () -> V?
Link copied to clipboard
var metaClass: MetaClass
Link copied to clipboard
val owner: Any
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun <W : Any> andThen(p0: Closure<W>): Closure<W>
Link copied to clipboard
open fun andThenSelf(): Closure<V?>
open fun andThenSelf(p0: Int): Closure<V?>
Link copied to clipboard
open fun asWritable(): Closure<Any>
Link copied to clipboard
open override fun call(): V?
open fun call(p0: Any): V?
open fun call(vararg p0: Any): V?
Link copied to clipboard
open override fun clone(): Any
Link copied to clipboard
open fun compose(p0: Closure<Any>): Closure<V?>
Link copied to clipboard
open fun composeSelf(): Closure<V?>
open fun composeSelf(p0: Int): Closure<V?>
Link copied to clipboard
open fun curry(p0: Any): Closure<V?>
open fun curry(vararg p0: Any): Closure<V?>
Link copied to clipboard
open fun dehydrate(): Closure<V?>
Link copied to clipboard
fun doCall(): V?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getProperty(p0: 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(p0: String, p1: Any): Any
Link copied to clipboard
open fun isCase(p0: Any): Boolean
Link copied to clipboard
open fun leftShift(p0: Closure<Any>): Closure<V?>
open fun leftShift(p0: Any): V?
Link copied to clipboard
open fun memoize(): Closure<V?>
Link copied to clipboard
open fun memoizeAtLeast(p0: Int): Closure<V?>
Link copied to clipboard
open fun memoizeAtMost(p0: Int): Closure<V?>
Link copied to clipboard
open fun memoizeBetween(p0: Int, p1: Int): Closure<V?>
Link copied to clipboard
open fun ncurry(p0: Int, p1: Any): Closure<V?>
open fun ncurry(p0: Int, vararg p1: Any): Closure<V?>
Link copied to clipboard
open fun rcurry(p0: Any): Closure<V?>
open fun rcurry(vararg p0: Any): Closure<V?>
Link copied to clipboard
open fun rehydrate(p0: Any, p1: Any, p2: Any): Closure<V?>
Link copied to clipboard
open fun <W : Any> rightShift(p0: Closure<W>): Closure<W>
Link copied to clipboard
open override fun run()
Link copied to clipboard
open override fun setProperty(p0: String, p1: Any)
Link copied to clipboard
open fun trampoline(): Closure<V?>
open fun trampoline(vararg p0: Any): Closure<V?>