KoLocalClassProvider

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

Inheritors

Properties

Link copied to clipboard

The local classes present in the declaration.

Link copied to clipboard
abstract val numLocalClasses: Int

The number of local classes.

Functions

Link copied to clipboard
abstract fun countLocalClasses(predicate: (KoClassDeclaration) -> Boolean): Int

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

Link copied to clipboard
abstract fun hasAllLocalClasses(predicate: (KoClassDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasLocalClass(predicate: (KoClassDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasLocalClasses(): Boolean

Determines whatever the declaration has local classes.

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

Determines whether the declaration has local classes with all the specified names.

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

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