KTypeParameter

Represents a declaration of a type parameter of a class or a callable. See the Kotlin language documentation for more information.

Since Kotlin

1.1

Properties

Link copied to clipboard
abstract val isReified: Boolean

true if this type parameter is reified. See the Kotlin language documentation for more information.

Since Kotlin 1.1
Link copied to clipboard
abstract val name: String

The name of this type parameter as it was declared in the source code.

Since Kotlin 1.1
Link copied to clipboard
abstract val upperBounds: List<KType>

Upper bounds, or generic constraints imposed on this type parameter. See the Kotlin language documentation for more information.

Since Kotlin 1.1
Link copied to clipboard
abstract val variance: KVariance

Declaration-site variance of this type parameter. See the Kotlin language documentation for more information.

Since Kotlin 1.1