hasTypeOf

abstract fun hasTypeOf(kClass: KClass<*>): Boolean

Determines whatever declaration has a type of the specified Kotlin class.

Return

true if the declaration has a type matching the specified KClass, false otherwise.

Parameters

kClass

The Kotlin class representing the type to check for.