KoVariableProvider

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

Inheritors

Properties

Link copied to clipboard
abstract val numVariables: Int

The number of variables.

Link copied to clipboard

The variables present in the declaration.

Functions

Link copied to clipboard
abstract fun countVariables(predicate: (KoVariableDeclaration) -> Boolean): Int

Gets the number of variables that satisfies the specified predicate present in the declaration.

Link copied to clipboard
abstract fun hasAllVariables(predicate: (KoVariableDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasVariable(predicate: (KoVariableDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasVariables(): Boolean

Whether the declaration has variables.

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

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

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

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