ImmutableKmTypeParameter

data class ImmutableKmTypeParameter : ImmutableKmWithFlags

Immutable representation of KmTypeParameter.

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

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
val annotations: List<KmAnnotation>
Annotations on the type parameter.
flags
Link copied to clipboard
open override val flags: Flags
Type parameter flags, consisting of Flag.TypeParameter flags.
id
Link copied to clipboard
val id: Int
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.
name
Link copied to clipboard
val name: String
The name of the type parameter.
upperBounds
Link copied to clipboard
val upperBounds: List<ImmutableKmType>
Upper bounds of the type parameter.
variance
Link copied to clipboard
val variance: KmVariance
The declaration-site variance of the type parameter.

Extensions

isReified
Link copied to clipboard
val ImmutableKmTypeParameter.isReified: Boolean