has Class Or Interface Or Object Declaration
abstract override fun hasClassOrInterfaceOrObjectDeclaration(predicate: (KoClassAndInterfaceAndObjectDeclaration) -> Boolean?): Boolean
Deprecated
Will be removed in version 0.19.0
Replace with
sourceDeclaration?.hasClassOrInterfaceOrObjectDeclaration()
Content copied to clipboard
Whether declaration has a specified class, interface or object declaration.
Return
true
if the declaration has the specified class, interface or object declaration (or any class, interface or object declaration if predicate is null
), false
otherwise.
Parameters
predicate
The predicate function used to determine if class, interface or object declaration satisfies a condition.