has Interface With Name
abstract fun hasInterfaceWithName(name: String, vararg names: String, includeNested: Boolean = true): Boolean
Determines whether the declaration has at least one interface whose name matches any of the specified names.
Return
true
if there is a matching declaration, false
otherwise.
Parameters
name
the name of the interface to check.
names
the names of the interfaces to check.
include Nested
Specifies whether to include nested interfaces in the check (optional, default is true
).
abstract fun hasInterfaceWithName(names: Collection<String>, includeNested: Boolean = true): Boolean
Determines whether the declaration has at least one interface whose name matches any of the specified names.
Return
true
if there is a matching declaration, false
otherwise.
Parameters
names
the names of the interfaces to check.
include Nested
Specifies whether to include nested interfaces in the check (optional, default is true
).