KoLocalDeclarationProvider

An interface representing a Kotlin declaration that provides information about local declarations.

Inheritors

Properties

Link copied to clipboard

The local declarations present in the declaration.

Link copied to clipboard

The number of local declarations.

Functions

Link copied to clipboard
abstract fun countLocalDeclarations(predicate: (KoBaseDeclaration) -> Boolean): Int

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

Link copied to clipboard

Determines whether the declaration has all local declarations that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasLocalDeclaration(predicate: (KoBaseDeclaration) -> Boolean): Boolean

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

Link copied to clipboard

Determines whatever the declaration has local declarations.