with Class
fun <T : KoClassProvider> List<T>.withClass(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoClassDeclaration) -> Boolean): List<T>
List containing declarations that have at least one class satisfying the provided predicate.
Return
A list containing declarations with at least one class satisfying the predicate.
Parameters
include Nested
Whether to include nested classes.
include Local
Whether to include local classes.
predicate
A function that defines the condition to be met by a class declaration.