withClassOrObjectNamed

fun <T : KoClassAndObjectProvider> List<T>.withClassOrObjectNamed(name: String, vararg names: String, includeNested: Boolean = true, includeLocal: Boolean = true): List<T>

List containing declarations that have at least one class or object with the specified name(s).

Return

A list containing declarations with at least one of the specified class(es) or object(s).

Parameters

name

The name of the class or object to include.

names

The names of additional classes and objects to include.

includeNested

Whether to include nested classes and objects.

includeLocal

Whether to include local classes.


fun <T : KoClassAndObjectProvider> List<T>.withClassOrObjectNamed(names: Collection<String>, includeNested: Boolean = true, includeLocal: Boolean = true): List<T>

List containing declarations that have at least one class or object with the specified name(s).

Return

A list containing declarations with at least one of the specified class(es) or object(s).

Parameters

names

The names of additional classes and objects to include.

includeNested

Whether to include nested classes and objects.

includeLocal

Whether to include local classes.