ArgumentList

data class ArgumentList : ArgumentsProviderV1, List<Any?> (source)

A list of argument value assignments for a set of parameters. Guarantees that an argument is provided for all parameters without default values.

Types

Link copied to clipboard
class 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

Gets the dispatch receiver if one is set.

Link copied to clipboard

Gets the extension receiver if one is set.

Link copied to clipboard

The parameters these arguments correspond to.

Link copied to clipboard
open override val size: Int
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun contains(element: Any?): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Any?>): Boolean
Link copied to clipboard
fun context(index: Int): Any?

Gets the contex parameter at index, if it is set. To distinguish between explicitly passing null and using the default value, use isDefaulted.

Link copied to clipboard
operator fun get(parameter: Parameter): Any?

Get the argument for parameter, or null if one was not set. To distinguish between explicitly passing null and using the default value, use isDefaulted.

open operator override fun get(index: Int): Any?

Get the argument for the parameter at index, or null if one was not set. To distinguish between explicitly passing null and using the default value, use isDefaulted.

operator fun get(name: String): Any?

Get the argument for the parameter with the given name, or null if one was not set. To distinguish between explicitly passing null and using the default value, use isDefaulted.

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

Get the argument for the kind parameter at indexInKind, or null if one was not set. To distinguish between explicitly passing null and using the default value, use isDefaulted.

Link copied to clipboard
open override fun indexOf(element: Any?): Int
Link copied to clipboard
fun isDefaulted(parameter: Parameter): Boolean

Returns true if the argument for parameter is defaulted (i.e. not set, and the parameter has a default value).

fun isDefaulted(globalIndex: Int): Boolean

Returns true if the argument for the parameter at globalIndex is defaulted (i.e. not set, and the parameter has a default value).

fun isDefaulted(kind: Parameter.Kind, indexInKind: Int): Boolean

Returns true if the argument for the kind parameter at indexInKind is defaulted (i.e. not set, and the parameter has a default value).

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<Any?>
Link copied to clipboard
open override fun lastIndexOf(element: Any?): Int
Link copied to clipboard
open override fun listIterator(): ListIterator<Any?>
open override fun listIterator(index: Int): ListIterator<Any?>
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<Any?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun v1Get(globalIndex: Int): Any?

Gets the arg, or null if it was not set.

Link copied to clipboard
fun value(index: Int): Any?

Gets the value parameter at index, if it is set. To distinguish between explicitly passing null and using the default value, use isDefaulted.