withClassesAndInterfaces

fun <T : KoClassAndInterfaceProvider> List<T>.withClassesAndInterfaces(includeNested: Boolean = true, includeLocal: Boolean = true): List<T>

List containing declarations with any class or interface.

Return

A list containing declarations with any class or interface.

Parameters

includeNested

Whether to include nested classes and interfaces.

includeLocal

Whether to include local classes.


fun <T : KoClassAndInterfaceProvider> List<T>.withClassesAndInterfaces(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (List<KoClassAndInterfaceDeclaration>) -> Boolean): List<T>

List containing declarations with classes and interfaces declarations satisfying the predicate.

Return

A list containing declarations with classes and interfaces declarations satisfying the predicate.

Parameters

includeNested

Whether to include nested classes and interfaces.

includeLocal

Whether to include local classes.

predicate

A function that defines the condition to be met by the list of classes and interfaces declarations.