KoParametersProvider

An interface representing a Kotlin declaration that provides access to its parameters.

Inheritors

Properties

Link copied to clipboard
abstract val numParameters: Int

The number of parameters.

Link copied to clipboard

Parameters of the declaration.

Functions

Link copied to clipboard
abstract fun countParameters(predicate: (KoParameterDeclaration) -> Boolean): Int

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

Link copied to clipboard

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

Link copied to clipboard
abstract fun hasParameter(predicate: (KoParameterDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasParameters(): Boolean

Determines whatever declaration has any parameter.

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

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

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

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