hasClassOrInterfaceOrObjectWithName

abstract fun hasClassOrInterfaceOrObjectWithName(name: String, vararg names: String, includeNested: Boolean = true, includeLocal: Boolean = true): Boolean

Determines whether the declaration has at least one class, interface or object whose name matches any of the specified names.

Return

true if there is a matching declaration, false otherwise.

Parameters

name

the name of the class, interface or object to check.

names

the names of the classes, interfaces and objects to check.

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).


abstract fun hasClassOrInterfaceOrObjectWithName(names: Collection<String>, includeNested: Boolean = true, includeLocal: Boolean = true): Boolean

Determines whether the declaration has at least one class, interface or object whose name matches any of the specified names.

Return

true if there is a matching declaration, false otherwise.

Parameters

names

the names of the classes, interfaces and objects to check.

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).