KoObjectProvider

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

Inheritors

Functions

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

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

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

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

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

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

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

Determines whatever the declaration has objects.

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

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

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

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

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

Returns the number of objects present in the declaration.

Link copied to clipboard
abstract fun objects(includeNested: Boolean = true): List<KoObjectDeclaration>

The objects present in the declaration.