hasParentInterfaceWithName

abstract fun hasParentInterfaceWithName(name: String, vararg names: String, indirectParents: Boolean = false): Boolean

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

names

the names of the parent interfaces to check.

indirectParents

specifies whether to include parent interfaces defined in other files such as parent of the parent.


abstract fun hasParentInterfaceWithName(names: Collection<String>, indirectParents: Boolean = false): Boolean

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

indirectParents

specifies whether to include parent interfaces defined in other files such as parent of the parent.