ImmutableKmTypeParameter

Immutable representation of KmTypeParameter.

Represents a type parameter of a Kotlin class, function, property or type alias.

data class ImmutableKmTypeParameter : ImmutableKmWithFlags

Functions

component1
Link copied to clipboard
operator fun component1(): Flags
component2
Link copied to clipboard
operator fun component2(): String
component3
Link copied to clipboard
operator fun component3(): Int
component4
Link copied to clipboard
operator fun component4(): KmVariance
component5
Link copied to clipboard
operator fun component5(): List<ImmutableKmType>
component6
Link copied to clipboard
operator fun component6(): List<KmAnnotation>
copy
Link copied to clipboard
fun copy(flags: Flags, name: String, id: Int, variance: KmVariance, upperBounds: List<ImmutableKmType>, annotations: List<KmAnnotation>): ImmutableKmTypeParameter
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toMutable
Link copied to clipboard
fun toMutable(): KmTypeParameter
toString
Link copied to clipboard
open override fun toString(): String

Properties

annotations
Link copied to clipboard

Annotations on the type parameter.

val annotations: List<KmAnnotation>
flags
Link copied to clipboard

Type parameter flags, consisting of Flag.TypeParameter flags.

open override val flags: Flags
id
Link copied to clipboard

The id of the type parameter, useful to be able to uniquely identify the type parameter in different contexts where the name isn't enough (e.g. class A<T> { fun <T> foo(t: T) }).

val id: Int
name
Link copied to clipboard

The name of the type parameter.

val name: String
upperBounds
Link copied to clipboard

Upper bounds of the type parameter.

val upperBounds: List<ImmutableKmType>
variance
Link copied to clipboard

The declaration-site variance of the type parameter.

val variance: KmVariance

Extensions

isReified
Link copied to clipboard
val ImmutableKmTypeParameter.isReified: Boolean