KoUpperBoundsProvider

An interface representing a Kotlin declaration that provides access to its upper bounds.

Inheritors

Properties

Link copied to clipboard
abstract val numUpperBounds: Int

The number of upper bounds.

Link copied to clipboard

Upper bounds of the declaration.

Functions

Link copied to clipboard
abstract fun countUpperBounds(predicate: (KoTypeDeclaration) -> Boolean): Int

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

Link copied to clipboard
abstract fun hasAllUpperBounds(predicate: (KoTypeDeclaration) -> Boolean): Boolean

Determines whether the declaration has all upper bounds that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasUpperBound(predicate: (KoTypeDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasUpperBounds(): Boolean

Determines whatever declaration has any upper bound.

Link copied to clipboard
abstract fun hasUpperBoundsWithAllNames(name: String, vararg names: String): Boolean

Determines whether the declaration has upper bounds with all the specified names.

Link copied to clipboard
abstract fun hasUpperBoundWithName(name: String, vararg names: String): Boolean

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