hasChildOf

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

Determines whether the declaration has at least one child of the specified KClass type.

Return

true if there is a matching declaration, 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 hasChildOf(names: Collection<KClass<*>>, indirectChildren: Boolean = false): Boolean

Determines whether the declaration has at least one child of the specified KClass type.

Return

true if there is a matching declaration, 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.