KoPropertyProvider

An interface representing a Kotlin declaration that provides information about properties.

Inheritors

Functions

Link copied to clipboard
abstract fun countProperties(includeNested: Boolean = true, predicate: (KoPropertyDeclaration) -> Boolean): Int

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

Link copied to clipboard
abstract fun hasAllProperties(includeNested: Boolean = true, predicate: (KoPropertyDeclaration) -> Boolean): Boolean

Determines whether the declaration has all properties that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasProperties(includeNested: Boolean = true): Boolean

Determines whatever the declaration has properties.

Link copied to clipboard
abstract fun hasPropertiesWithAllNames(names: Collection<String>, includeNested: Boolean = true): Boolean
abstract fun hasPropertiesWithAllNames(name: String, vararg names: String, includeNested: Boolean = true): Boolean

Determines whether the declaration has properties with all the specified names.

Link copied to clipboard
abstract fun hasProperty(includeNested: Boolean = true, predicate: (KoPropertyDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasPropertyWithName(names: Collection<String>, includeNested: Boolean = true): Boolean
abstract fun hasPropertyWithName(name: String, vararg names: String, includeNested: Boolean = true): Boolean

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

Link copied to clipboard
abstract fun numProperties(includeNested: Boolean = true): Int

Returns the number of properties present in the declaration.

Link copied to clipboard
abstract fun properties(includeNested: Boolean = true): List<KoPropertyDeclaration>

The properties present in the declaration.