Builder

A builder to assemble an ArgumentList for a set of parameters. Parameters which are not set will use their default values if they have one. Successfully building an ArgumentList guarantees that values are provided for all parameters without default values.

Properties

Link copied to clipboard

Setter for the dispatch receiver parameter. Getting always returns null.

Link copied to clipboard

Setter for the dispatch receiver parameter. Getting always returns null.

Functions

Link copied to clipboard
fun context(vararg values: Any?, offset: Int = 0)

Sets multiple argument values for context parameters based on values. For each item in values, sets the argument value for the parameter at index [contextParameterStart + idx + offset].

Link copied to clipboard
fun set(vararg values: Pair<String, Any?>)

Set multiple arguments based on the parameter names.

operator fun set(parameter: Parameter, value: Any?)

Sets the value of the given parameter.

operator fun set(globalIndex: Int, value: Any?)

Sets the argument value for the parameter at index globalIndex.

operator fun set(name: String, value: Any?)

Sets the value of the parameter with the given name.

operator fun set(kind: Parameter.Kind, indexInKind: Int, value: Any?)

Sets the argument value for the kind parameter at indexInKind.

Link copied to clipboard
@JvmName(name = "setAllVararg")
fun setAll(vararg args: Any?, offset: Int = 0)
@JvmName(name = "setAllArray")
fun setAll(args: Array<Any?>, offset: Int = 0)
fun setAll(args: Iterable<Any?>, offset: Int = 0)

Sets multiple argument values based on args. For each item in args, sets the argument value for the parameter at index [idx + offset].

@JvmName(name = "setAllVararg")
fun setAll(kind: Parameter.Kind, vararg args: Any?, offset: Int = 0)
@JvmName(name = "setAllArray")
fun setAll(kind: Parameter.Kind, args: Array<Any?>, offset: Int = 0)
fun setAll(kind: Parameter.Kind, args: Iterable<Any?>, offset: Int = 0)

Sets multiple argument values for kind parameters based on args. For each item in args, sets the argument value for the parameter at index [kindOffset(kind) + idx + offset].

Link copied to clipboard
fun value(vararg values: Any?, offset: Int = 0)

Sets multiple argument values for value parameters based on values. For each item in values, sets the argument value for the parameter at index [valueParameterStart + idx + offset].