KoArgumentProvider

An interface representing a Kotlin declaration that provides access to arguments.

Inheritors

Properties

Link copied to clipboard

List of arguments.

Link copied to clipboard
abstract val numArguments: Int

The number of arguments.

Functions

Link copied to clipboard
abstract fun countArguments(predicate: (KoArgumentDeclaration) -> Boolean): Int

Returns the number of arguments that satisfies the specified predicate present in the declaration.

Link copied to clipboard
abstract fun hasAllArguments(predicate: (KoArgumentDeclaration) -> Boolean): Boolean

Determines whether the declaration has all arguments that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasArgument(predicate: (KoArgumentDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one argument that satisfies the provided predicate.

Link copied to clipboard
abstract fun hasArguments(): Boolean

Determines whatever the declaration has arguments.

Link copied to clipboard
abstract fun hasArgumentsWithAllNames(name: String, vararg names: String): Boolean

Determines whether the declaration has arguments with all the specified names.

Link copied to clipboard
abstract fun hasArgumentWithName(name: String, vararg names: String): Boolean

Determines whether the declaration has at least one argument whose name matches any of the specified names.