Ko Object Provider
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
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(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
Returns the number of objects present in the declaration.
Link copied to clipboard
The objects present in the declaration.