countConstructors

abstract fun countConstructors(predicate: (KoConstructorDeclaration) -> Boolean): Int

Returns the number of constructors that satisfies the specified predicate present in the declaration.

Return

The number of constructors in the declaration.

Parameters

predicate

The predicate function to determine if a constructor satisfies a condition.