count Classes
abstract fun countClasses(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoClassDeclaration) -> Boolean): Int
Returns the number of classes that satisfies the specified predicate present in the declaration.
Return
The number of classes in the declaration.
Parameters
include Nested
Specifies whether to include nested classes in the count (optional, default is true
).
include Local
Specifies whether to include local classes in the count (optional, default is true
).
predicate
The predicate function to determine if a class satisfies a condition.