KoInitBlockProvider

An interface representing a Kotlin declaration that provides access to init block declarations.

Inheritors

Properties

Link copied to clipboard

The init blocks of the declaration.

Link copied to clipboard
abstract val numInitBlocks: Int

The number of init blocks.

Functions

Link copied to clipboard
abstract fun countInitBlocks(predicate: (KoInitBlockDeclaration) -> Boolean): Int

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

Link copied to clipboard

Determines whether the declaration has all init blocks that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasInitBlock(predicate: (KoInitBlockDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasInitBlocks(): Boolean

Determines whatever declaration has init blocks.