Package io.ktor.util.reflect

Types

Link copied to clipboard
expect interface Type

Information about type.

actual typealias Type = Type
actual typealias Type = KType
Link copied to clipboard
interface TypeInfo

Ktor type information.

Functions

Link copied to clipboard
expect fun Any.instanceOf(type: KClass<*>): Boolean

Check this is instance of type.

actual fun Any.instanceOf(type: KClass<*>): Boolean

Check this is instance of type.

actual fun Any.instanceOf(type: KClass<*>): Boolean

Check this is instance of type.

Link copied to clipboard
expect inline fun <T> typeInfo(): TypeInfo

Returns TypeInfo for the specified type T

actual inline fun <T> typeInfo(): TypeInfo
actual inline fun <T> typeInfo(): TypeInfo
Link copied to clipboard
fun typeInfoImpl(reifiedType: Type, kClass: KClass<*>, kType: KType): TypeInfo