hasFunctionWithName

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

Determines whether the declaration has at least one function whose name matches any of the specified names.

Return

true if there is a matching declaration, false otherwise.

Parameters

name

the name of the function to check.

names

the names of the functions to check.

includeNested

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

includeLocal

Specifies whether to include local functions in the check (optional, default is true).


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

Determines whether the declaration has at least one function whose name matches any of the specified names.

Return

true if there is a matching declaration, false otherwise.

Parameters

names

the names of the functions to check.

includeNested

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

includeLocal

Specifies whether to include local functions in the check (optional, default is true).