KoTypeArgumentProvider

An interface representing a Kotlin declaration that provides the declaration associated with this type.

Inheritors

Properties

Link copied to clipboard
abstract val numTypeArguments: Int

The number of type arguments.

Link copied to clipboard

A list of type arguments associated with this declaration, if any. If there are no type arguments, this returns null.

Functions

Link copied to clipboard

Counts the number of type arguments that match the given predicate.

Link copied to clipboard

Checks if all type arguments match the given predicate.

Link copied to clipboard
abstract fun hasAllTypeArgumentsOf(name: KClass<*>, vararg names: KClass<*>): Boolean

Checks if all type arguments match the specified class.

Link copied to clipboard

Checks if any type argument matches the given predicate.

Link copied to clipboard
abstract fun hasTypeArgumentOf(names: Collection<KClass<*>>): Boolean
abstract fun hasTypeArgumentOf(name: KClass<*>, vararg names: KClass<*>): Boolean

Checks if any type argument is of the specified class.

Link copied to clipboard
abstract fun hasTypeArguments(): Boolean

Determines whatever the declaration has type arguments.

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

Checks if all type arguments have one of the specified names.

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

Checks if any type argument has one of the specified names.