has Child Of
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.
indirect Children
specifies whether to include children defined in other files such as child of the child.
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.
indirect Children
specifies whether to include children defined in other files such as child of the child.