has All External Parents Of
Determines whether the declaration has external parents with all the specified KClass type.
Return
true if the declaration has external parents of all the specified KClass types, false otherwise.
Parameters
the KClass type of the external parent to check.
the KClass types of the external parents to check.
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]Determines whether the declaration has external parents with all the specified KClass type.
Return
true if the declaration has external parents of all the specified KClass types, false otherwise.
Parameters
the KClass types of the external parents to check.
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]