KoTypeParameterProvider

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

Inheritors

Properties

Link copied to clipboard
abstract val numTypeParameters: Int

The number of type parameters.

Link copied to clipboard

Type parameters of the declaration.

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
abstract fun hasTypeParameters(): Boolean

Determines whatever declaration has any type parameter.

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

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

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

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