KoExternalParentProvider

An interface representing a Kotlin declaration that provides access to the external parents. The external parent is a parent defined outside the project codebase (defined inside external library).

Inheritors

Functions

Link copied to clipboard
abstract fun countExternalParents(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Int

Returns the number of external parents that satisfies the specified predicate present in the declaration.

Link copied to clipboard
abstract fun externalParents(indirectParents: Boolean = false): List<KoParentDeclaration>

List containing external parents of the declaration.

Link copied to clipboard
abstract fun hasAllExternalParents(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Boolean

Determines whether the declaration has all external parents that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasAllExternalParentsOf(names: Collection<KClass<*>>, indirectParents: Boolean = false): Boolean
abstract fun hasAllExternalParentsOf(name: KClass<*>, vararg names: KClass<*>, indirectParents: Boolean = false): Boolean

Determines whether the declaration has external parents with all the specified KClass type.

Link copied to clipboard
abstract fun hasExternalParent(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one external parent that satisfies the provided predicate.

Link copied to clipboard
abstract fun hasExternalParentOf(names: Collection<KClass<*>>, indirectParents: Boolean = false): Boolean
abstract fun hasExternalParentOf(name: KClass<*>, vararg names: KClass<*>, indirectParents: Boolean = false): Boolean

Determines whether the declaration has at least one external parent of the specified KClass type.

Link copied to clipboard

Returns true if declaration represents the type of T. The external parent is a parent defined outside the project codebase (defined inside external library).

Link copied to clipboard
abstract fun hasExternalParents(indirectParents: Boolean = false): Boolean

Determines whatever declaration has any external parents. The external parent is a parent defined outside project codebase (defined inside external library).

Link copied to clipboard
abstract fun hasExternalParentsWithAllNames(names: Collection<String>, indirectParents: Boolean = false): Boolean
abstract fun hasExternalParentsWithAllNames(name: String, vararg names: String, indirectParents: Boolean = false): Boolean

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

Link copied to clipboard
abstract fun hasExternalParentWithName(names: Collection<String>, indirectParents: Boolean = false): Boolean
abstract fun hasExternalParentWithName(name: String, vararg names: String, indirectParents: Boolean = false): Boolean

Determines whether the declaration has at least one external parent whose name matches any of the specified.

Link copied to clipboard
abstract fun numExternalParents(indirectParents: Boolean = false): Int

Returns the number of external parents.