countAnnotations

abstract fun countAnnotations(predicate: (KoAnnotationDeclaration) -> Boolean): Int

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

Return

The number of annotations in the declaration.

Parameters

predicate

The predicate function to determine if an annotation satisfies a condition.