withAllParentsOf
fun <T : KoParentProvider> List<T>.withAllParentsOf(kClass: KClass<*>, vararg kClasses: KClass<*>, indirectParents: Boolean = false): List<T>
List containing declarations that have all parents of the specified KClass
type.
Return
A list containing declarations that have all parents of the specified KClass
type.
Parameters
kClass
The Kotlin class representing parent to include.
kClasses
The Kotlin classes representing parents to include.
indirectParents
Whether to include indirect parents.
fun <T : KoParentProvider> List<T>.withAllParentsOf(kClasses: Collection<KClass<*>>, indirectParents: Boolean = false): List<T>
List containing declarations that have all parents of the specified KClass
type.
Return
A list containing declarations that have all parents of the specified KClass
type.
Parameters
kClasses
The Kotlin classes representing parents to include.
indirectParents
Whether to include indirect parents.