has Class Or Interface
abstract fun hasClassOrInterface(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoClassAndInterfaceDeclaration) -> Boolean): Boolean
Determines whether the declaration has at least one class or interface that satisfies the provided predicate.
Return
true
if there is a matching declaration, false
otherwise.
Parameters
include Nested
Specifies whether to include nested classes and interfaces in the check (optional, default is true
).
include Local
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 or interface declaration.