hasObjectWithName

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

Determines whether the declaration has at least one 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 object to check.

names

the names of the objects to check.

includeNested

Specifies whether to include nested objects in the check (optional, default is true).


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

Determines whether the declaration has at least one 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 objects to check.

includeNested

Specifies whether to include nested objects in the check (optional, default is true).