KoConstructorProvider

An interface representing a Kotlin declaration that provides access to all primary and secondary constructors.

Inheritors

Properties

Link copied to clipboard

The all primary and secondary constructors of the declaration.

Link copied to clipboard
abstract val numConstructors: Int

The number of constructors.

Functions

Link copied to clipboard
abstract fun countConstructors(predicate: (KoConstructorDeclaration) -> Boolean): Int

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

Link copied to clipboard

Determines whatever the declaration has all constructors with the specified predicate.

Link copied to clipboard

Determines whatever the declaration has any constructor with the specified predicate.

Link copied to clipboard
abstract fun hasConstructors(): Boolean

Determines whatever the declaration has any constructor.