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