countInterfacesAndObjects

abstract fun countInterfacesAndObjects(includeNested: Boolean = true, predicate: (KoInterfaceAndObjectDeclaration) -> Boolean): Int

Returns the number of interfaces and objects that satisfies the specified predicate present in the declaration.

Return

The number of interfaces and objects in the declaration.

Parameters

includeNested

Specifies whether to include nested interfaces and objects in the count (optional, default is true).

predicate

The predicate function to determine if an interface or object satisfies a condition.