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