hasAllParentClassesOf

abstract fun hasAllParentClassesOf(name: KClass<*>, vararg names: KClass<*>, indirectParents: Boolean = false): Boolean

Determines whether the declaration has parent classes with all the specified KClass type.

Return

true if the declaration has parent classes of all the specified KClass types, false otherwise.

Parameters

name

the KClass type of the parent class to check.

names

the KClass types of the parent classes to check.

indirectParents

specifies whether to include parent classes defined in other files such as parent of the parent.


abstract fun hasAllParentClassesOf(names: Collection<KClass<*>>, indirectParents: Boolean = false): Boolean

Determines whether the declaration has parent classes with all the specified KClass type.

Return

true if the declaration has parent classes of all the specified KClass types, false otherwise.

Parameters

names

the KClass types of the parent classes to check.

indirectParents

specifies whether to include parent classes defined in other files such as parent of the parent.