withAllParentClassesOf

fun <T : KoParentClassProvider> List<T>.withAllParentClassesOf(kClass: KClass<*>, vararg kClasses: KClass<*>, indirectParents: Boolean = false): List<T>

List containing declarations that have all parent classes of the specified KClass type.

Return

A list containing declarations that have all parent classes of the specified KClass type.

Parameters

kClass

The Kotlin class representing parent class to include.

kClasses

The Kotlin classes representing parent classes to include.

indirectParents

Whether to include indirect parent classes.


fun <T : KoParentClassProvider> List<T>.withAllParentClassesOf(kClasses: Collection<KClass<*>>, indirectParents: Boolean = false): List<T>

List containing declarations that have all parent classes of the specified KClass type.

Return

A list containing declarations that have all parent classes of the specified KClass type.

Parameters

kClasses

The Kotlin classes representing parent classes to include.

indirectParents

Whether to include indirect parent classes.