has Interface Or Object
abstract fun hasInterfaceOrObject(includeNested: Boolean = true, predicate: (KoInterfaceAndObjectDeclaration) -> Boolean): Boolean
Determines whether the declaration has at least one interface or object that satisfies the provided predicate.
Return
true
if there is a matching declaration, false
otherwise.
Parameters
include Nested
Specifies whether to include nested interfaces and objects in the check (optional, default is true
).
predicate
A function that defines the condition to be met by an interface or object declaration.