hasClassDeclaration

abstract override fun hasClassDeclaration(predicate: (KoClassDeclaration) -> Boolean?): Boolean

Deprecated

Will be removed in version 0.19.0

Replace with

sourceDeclaration?.hasClassDeclaration()

Whether declaration has a specified class declaration.

Return

true if the declaration has the specified class declaration (or any class declaration if predicate is null), false otherwise.

Parameters

predicate

The predicate function used to determine if a class declaration satisfies a condition.