Package-level declarations

Functions

Link copied to clipboard
fun TypeInfo.hasTypeParameters(predicate: (KTypeParameter) -> Boolean = { true }): Boolean
Link copied to clipboard
expect fun TypeInfo.hierarchy(): Sequence<TypeInfo>

Returns all types of the hierarchy, starting with the given type.

actual fun TypeInfo.hierarchy(): Sequence<TypeInfo>

Returns all types of the hierarchy, starting with the given type.

actual fun TypeInfo.hierarchy(): Sequence<TypeInfo>

This kind of reflection is currently only supported for the JVM platform.

Link copied to clipboard
expect fun TypeInfo.toNullable(): TypeInfo?

Converts the current TypeInfo into a nullable type representation. If the type is already nullable, returns null.

actual fun TypeInfo.toNullable(): TypeInfo?

Converts the current TypeInfo into a nullable type representation. If the type is already nullable, returns null.

actual fun TypeInfo.toNullable(): TypeInfo?

This kind of reflection is currently only supported for the JVM platform.

Link copied to clipboard
fun TypeInfo.toRawType(): TypeInfo

Returns a raw type representation of the current TypeInfo.

Link copied to clipboard
expect fun TypeInfo.typeParametersHierarchy(): Sequence<TypeInfo>

Returns a list of the given base implementation for covariant type arguments.

actual fun TypeInfo.typeParametersHierarchy(): Sequence<TypeInfo>

Returns a list of the given base implementation for covariant type arguments.

actual fun TypeInfo.typeParametersHierarchy(): Sequence<TypeInfo>

This kind of reflection is currently only supported for the JVM platform.