ImmutableKmVersionRequirement

Immutable representation of KmVersionRequirement.

Represents a version requirement on a Kotlin declaration.

Version requirement is an internal feature of the Kotlin compiler and the standard Kotlin library, enabled for example with the internal kotlin.internal.RequireKotlin annotation.

data class ImmutableKmVersionRequirement : KmVersionRequirementVisitor

Functions

component1
Link copied to clipboard
operator fun component1(): KmVersionRequirementVersionKind
component2
Link copied to clipboard
operator fun component2(): KmVersionRequirementLevel
component3
Link copied to clipboard
operator fun component3(): Int?
component4
Link copied to clipboard
operator fun component4(): String?
component5
Link copied to clipboard
operator fun component5(): KmVersion
copy
Link copied to clipboard
fun copy(kind: KmVersionRequirementVersionKind, level: KmVersionRequirementLevel, errorCode: Int?, message: String?, version: KmVersion): ImmutableKmVersionRequirement
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(): KmVersionRequirement
toString
Link copied to clipboard
open override fun toString(): String
visit
Link copied to clipboard
open override fun visit(kind: KmVersionRequirementVersionKind, level: KmVersionRequirementLevel, errorCode: Int?, message: String?)
visitEnd
Link copied to clipboard
open override fun visitEnd()
visitVersion
Link copied to clipboard
open override fun visitVersion(major: Int, minor: Int, patch: Int)

Properties

delegate
Link copied to clipboard
override val delegate: KmVersionRequirementVisitor?
errorCode
Link copied to clipboard

Optional error code to be displayed in the diagnostic.

val errorCode: Int?
kind
Link copied to clipboard

Kind of the version that this declaration requires.

val kind: KmVersionRequirementVersionKind
level
Link copied to clipboard

Level of the diagnostic that must be reported on the usages of the declaration in case the version requirement is not satisfied.

val level: KmVersionRequirementLevel
message
Link copied to clipboard

Optional message to be displayed in the diagnostic.

val message: String?
version
Link copied to clipboard

Version required by this requirement.

val version: KmVersion