hasAllChildrenOf

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

Determines whether the declaration has children with all the specified KClass type.

Return

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

Parameters

name

the KClass type of the child to check.

names

the KClass types of the children to check.

indirectChildren

specifies whether to include children defined in other files such as child of the child.


abstract fun hasAllChildrenOf(names: Collection<KClass<*>>, indirectChildren: Boolean = false): Boolean

Determines whether the declaration has children with all the specified KClass type.

Return

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

Parameters

names

the KClass types of the children to check.

indirectChildren

specifies whether to include children defined in other files such as child of the child.