Package-level declarations

Types

Link copied to clipboard
class GenericArrayTypeImpl(genericComponentType: Type) : GenericArrayType
Link copied to clipboard
class ParameterizedTypeImpl(ownerType: Type?, rawType: Type, actualTypeArguments: Type) : ParameterizedType
Link copied to clipboard
class WildcardTypeImpl(upperBounds: Array<out Type>, lowerBounds: Array<out Type>) : WildcardType

Properties

Link copied to clipboard
Link copied to clipboard
val <K> Map<K, *>.keyType: KType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the simple name of this class, including the simple names of all its enclosing classes, or null if the class or any enclosing class has no name (for example, if it is an anonymous class).

Link copied to clipboard
val <V> Map<*, V>.valueType: KType

Functions

Link copied to clipboard
fun <V> Function<V>.call(vararg args: Any?): V

A utility function to call lambdas using a variable amount of arguments.

Link copied to clipboard
@JvmName(name = "createStarProjectedType1")
fun createStarProjectedType(classifier: KClass<*>, nullable: Boolean = false, annotations: List<Annotation> = emptyList()): KType
Link copied to clipboard
fun KClass<*>.createStarProjectedType(nullable: Boolean = false, annotations: List<Annotation> = emptyList()): KType
Link copied to clipboard
@JvmName(name = "createTypeKType")
fun createType(classifier: KClassifier, vararg arguments: KType?): KType
@JvmName(name = "createTypeKTypeProjection")
fun createType(classifier: KClassifier, vararg arguments: KTypeProjection): KType
fun createType(classifier: KClassifier, arguments: List<KTypeProjection> = emptyList(), nullable: Boolean = false, annotations: List<Annotation> = emptyList()): KType
Link copied to clipboard
@JvmName(name = "KClassifierCreateTypeKType")
fun KClassifier.createType(vararg arguments: KType?): KType
@JvmName(name = "KClassifierCreateTypeKTypeProjection")
fun KClassifier.createType(vararg arguments: KTypeProjection): KType
Link copied to clipboard

Compares two KTypes for equality, ignoring nullability.

Link copied to clipboard

Compares two KTypes for equality, treating platform types as non-nullable types (e.g. String! ->String).

Link copied to clipboard
fun <T> KProperty1<T, *>.getRuntimeDelegate(receiver: T & Any): Any?
fun <T, E> KProperty2<T, E, *>.getRuntimeDelegate(receiver: T & Any): Any?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T> KProperty1<T, *>.isLazyInitialized(receiver: T): Boolean
fun <T, E> KProperty2<T, E, *>.isLazyInitialized(receiver1: T, receiver2: E): Boolean
Link copied to clipboard
fun KClass<*>.isSubclassOfAny(vararg classes: KClass<*>): Boolean
Link copied to clipboard
inline fun <T> KType.isSubtypeOf(): Boolean
Link copied to clipboard
inline fun <T> KType.isSuperTypeOf(): Boolean
Link copied to clipboard
inline fun <T> javaTypeOf(): Type