KTypes

object KTypes(source)

Utilities that extend the functionality of KType.

Functions

Link copied to clipboard

All the supertypes of the class of this type, except Any, as in KClass.allNonAnySuperKClasses; none if the classifier of this type is not a class.

Link copied to clipboard
fun KType?.asKClass(): KClass<*>?

The class of this type, or null if this type is null or its classifier is not a class (e.g., a type parameter).

Link copied to clipboard

The class of this type, or null if this type is null, its classifier is not a class, or it is Any.