hasExternalParentsWithAllNames

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

Determines whether the declaration has parents interface defined project codebase (external == false)

Return

true if there are declarations with all the specified names, false otherwise.

Parameters

name

The name of the external parent to check.

names

The names of the external parents to check.

indirectParents

specifies whether to include external parents defined in other files such as parent of the parent. If true, it includes only those external parents defined within our scope and those used by our declarations. For example:

// Android
class AppCompactActivity: Activity
interface Activity

// Project
class BaseActivity: AppCompactActivity() // externalParents(indirectParents = true) returns [AppCompactActivity]
class MyActivity: BaseActivity() // externalParents(indirectParents = true) returns [AppCompactActivity]

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

Determines whether the declaration has parents interface defined project codebase (external == false)

Return

true if there are declarations with all the specified names, false otherwise.

Parameters

names

The names of the external parents to check.

indirectParents

specifies whether to include external parents defined in other files such as parent of the parent. If true, it includes only those external parents defined within our scope and those used by our declarations. For example:

// Android
class AppCompactActivity: Activity
interface Activity

// Project
class BaseActivity: AppCompactActivity() // externalParents(indirectParents = true) returns [AppCompactActivity]
class MyActivity: BaseActivity() // externalParents(indirectParents = true) returns [AppCompactActivity]