gradle
8.3

# invoke

abstract operator fun String.invoke(vararg arguments: Any?): Any?

Invokes with Groovy semantics and arguments.

open operator fun String.invoke(): Any?

Invokes with Groovy semantics and no arguments.

open operator fun <T> String.invoke(vararg arguments: Any?, builder: GroovyBuilderScope.() -> T): Any?

Invokes with Groovy semantics, arguments and provides a nested GroovyBuilderScope.

open operator fun <T> String.invoke(builder: GroovyBuilderScope.() -> T): Any?

Invokes with Groovy semantics, no arguments, and provides a nested GroovyBuilderScope.

open operator fun <T> String.invoke(vararg keywordArguments: Pair<String, Any?>, builder: GroovyBuilderScope.() -> T): Any?

Invokes with Groovy semantics, named keywordArguments, and provides a nested GroovyBuilderScope.

open operator fun String.invoke(vararg keywordArguments: Pair<String, Any?>): Any?

Invokes with Groovy semantics and named keywordArguments.