KoInterfaceAndObjectProvider

An interface representing a Kotlin declaration that provides information about interfaces and objects.

Inheritors

Functions

Link copied to clipboard
abstract fun countInterfacesAndObjects(includeNested: Boolean = true, predicate: (KoInterfaceAndObjectDeclaration) -> Boolean): Int

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

Link copied to clipboard
abstract fun hasAllInterfacesAndObjects(includeNested: Boolean = true, predicate: (KoInterfaceAndObjectDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasInterfaceOrObject(includeNested: Boolean = true, predicate: (KoInterfaceAndObjectDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasInterfaceOrObjectWithName(names: Collection<String>, includeNested: Boolean = true): Boolean
abstract fun hasInterfaceOrObjectWithName(name: String, vararg names: String, includeNested: Boolean = true): Boolean

Determines whether the declaration has at least one interface or object whose name matches any of the specified names.

Link copied to clipboard
abstract fun hasInterfacesAndObjectsWithAllNames(names: Collection<String>, includeNested: Boolean = true): Boolean
abstract fun hasInterfacesAndObjectsWithAllNames(name: String, vararg names: String, includeNested: Boolean = true): Boolean

Determines whether the declaration has interfaces and objects with all the specified names.

Link copied to clipboard
abstract fun hasInterfacesOrObjects(includeNested: Boolean = true): Boolean

Determines whatever the declaration has interfaces and objects.

Link copied to clipboard

The interfaces and objects present in the declaration.

Link copied to clipboard
abstract fun numInterfacesAndObjects(includeNested: Boolean = true): Int

Returns the number of interfaces and objects present in the declaration.