KoParentInterfaceProvider

An interface representing a Kotlin declaration that provides access to its parent interfaces.

Inheritors

Functions

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

Returns the number of parent interfaces that satisfies the specified predicate present in the declaration.

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

Determines whether the declaration has all parent interfaces that satisfy the provided predicate.

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

Determines whether the declaration has parent interfaces with all the specified KClass type.

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

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

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

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

Link copied to clipboard

Returns true if declaration represents the type of T.

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

Determines whatever declaration has any parent interface.

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

Determines whether the declaration has parent interfaces defined with all the specified names.

Link copied to clipboard
abstract fun hasParentInterfaceWithName(names: Collection<String>, indirectParents: Boolean = false): Boolean
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.

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

Returns the number of parent interfaces.

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

The parent interfaces of the declaration.