KoEnumConstantProvider

An interface representing a Kotlin declaration that provides access to enum constants.

Inheritors

Properties

Link copied to clipboard

List of enum constants.

Link copied to clipboard
abstract val numEnumConstants: Int

The number of enum constants.

Functions

Link copied to clipboard

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

Link copied to clipboard

Determines whatever the declaration has all enum constants with the specified predicate.

Link copied to clipboard

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

Link copied to clipboard
abstract fun hasEnumConstants(): Boolean

Determines whatever the declaration has any enum constant.

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

Determines whether the declaration has enum constants with all the specified names.

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

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