KmType

class KmType

Represents a type.

Various type attributes can be read and manipulated via extension properties, such as KmType.isNullable.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Abbreviation of this type. Note that all types are expanded for metadata produced by the Kotlin compiler. For example:

Link copied to clipboard

Annotations on the type.

Link copied to clipboard

Arguments of the type, if the type's classifier is a class or a type alias.

Link copied to clipboard
lateinit var classifier: KmClassifier

Classifier of the type.

Link copied to clipboard

Upper bound of this type, if this type is flexible. In that case, all other data refers to the lower bound of the type.

Link copied to clipboard

Indicates that the corresponding type is definitely non-null.

Link copied to clipboard

Indicates that the corresponding type is marked as nullable, i.e., has a question mark at the end of its notation.

Link copied to clipboard

true if the type is seen as a raw type in Java.

Link copied to clipboard

Indicates that the corresponding type is suspend.

Link copied to clipboard

Outer type of this type, if this type's classifier is an inner class. For example:

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Determines whether this KmType is equal to the given other.

Link copied to clipboard
open override fun hashCode(): Int

Computes the hash code of the KmType object using its properties.