open class KotlinClosure0<V : Any> : Closure<V?>
Adapts a parameterless Kotlin function to a parameterless Groovy Closure.
function
- the function to be adapted.
owner
- optional owner of the Closure.
thisObject
- optional this Object of the Closure.
See Also
KotlinClosure0(function: () -> V?, owner: Any? = null, thisObject: Any? = null)
Adapts a parameterless Kotlin function to a parameterless Groovy Closure. |
val function: () -> V?
the function to be adapted. |
fun doCall(): V? |
fun <T> Any.closureOf(action: T.() -> Unit): Closure<Any?>
Adapts a Kotlin function to a single argument Groovy Closure. |
|
fun <T> Any.delegateClosureOf(action: T.() -> Unit): Closure<Unit>
Adapts a Kotlin function to a Groovy Closure that operates on the configured Closure delegate. |
|
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 |
|
fun <ConventionType : Any, ReturnType> Any.withConvention(conventionType: KClass<ConventionType>, function: ConventionType.() -> ReturnType): ReturnType
Evaluates the given function against the convention plugin of the given conventionType. |
|
fun <T> Any.withGroovyBuilder(builder: GroovyBuilderScope.() -> T): T
Executes the given builder against this object's GroovyBuilderScope. |