with All Children Of
fun <T : KoChildProvider> List<T>.withAllChildrenOf(kClass: KClass<*>, vararg kClasses: KClass<*>, indirectChildren: Boolean = false): List<T>
List containing declarations that have all children of the specified KClass
type.
Return
A list containing declarations that have all children of the specified KClass
type.
Parameters
k Class
The Kotlin class representing child to include.
k Classes
The Kotlin classes representing children to include.
indirect Children
Whether to include indirect children.
fun <T : KoChildProvider> List<T>.withAllChildrenOf(kClasses: Collection<KClass<*>>, indirectChildren: Boolean = false): List<T>
List containing declarations that have all children of the specified KClass
type.
Return
A list containing declarations that have all children of the specified KClass
type.
Parameters
k Classes
The Kotlin classes representing children to include.
indirect Children
Whether to include indirect children.