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