TypeParameter

data class TypeParameter(val name: String, val index: Int, val variance: TypeParameter.Variance, val erasedUpperBounds: List<KType>, val isReified: Boolean, val annotations: List<Annotation>, val declaredAnnotations: List<Annotation>, val allAnnotations: List<AnnotationInfo>) : AnnotatedElement(source)

A type parameter.

Constructors

Link copied to clipboard
constructor(name: String, index: Int, variance: TypeParameter.Variance, erasedUpperBounds: List<KType>, isReified: Boolean, annotations: List<Annotation>, declaredAnnotations: List<Annotation>, allAnnotations: List<AnnotationInfo>)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val allAnnotations: List<AnnotationInfo>

All annotations on this element with their source information.

Link copied to clipboard
open override val annotations: List<Annotation>

All annotations on this element, including inherited ones.

Link copied to clipboard
open override val declaredAnnotations: List<Annotation>

Annotations declared directly on this element.

Link copied to clipboard
Link copied to clipboard
val index: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> AnnotatedElement.annotation(): T?

Get the first annotation of type T, or null if none is found.

Link copied to clipboard

Get all annotations of type T.