countClassesAndInterfacesAndObjects
abstract fun countClassesAndInterfacesAndObjects( includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoClassAndInterfaceAndObjectDeclaration) -> Boolean): Int
Returns the number of classes, interfaces and objects that satisfies the specified predicate present in the declaration.
Return
The number of classes, interfaces and objects in the declaration.
Parameters
includeNested
Specifies whether to include nested classes, interfaces and objects in the count (optional, default is true
).
includeLocal
Specifies whether to include local classes in the count (optional, default is true
).
predicate
The predicate function to determine if a class, interface or object satisfies a condition.