Ko Function Provider
An interface representing a Kotlin declaration that provides information about functions.
Inheritors
Functions
Link copied to clipboard
abstract fun countFunctions(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoFunctionDeclaration) -> Boolean): Int
Returns the number of functions that satisfies the specified predicate present in the declaration.
Link copied to clipboard
abstract fun hasAllFunctions(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoFunctionDeclaration) -> Boolean): Boolean
Determines whether the declaration has all functions that satisfy the provided predicate.
Link copied to clipboard
abstract fun hasFunction(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoFunctionDeclaration) -> Boolean): Boolean
Determines whether the declaration has at least one function that satisfies the provided predicate.
Link copied to clipboard
Determines whatever the declaration has functions.
Link copied to clipboard
abstract fun hasFunctionsWithAllNames(names: Collection<String>, includeNested: Boolean = true, includeLocal: Boolean = true): Boolean
abstract fun hasFunctionsWithAllNames(name: String, vararg names: String, includeNested: Boolean = true, includeLocal: Boolean = true): Boolean
Determines whether the declaration has functions with all the specified names.
Link copied to clipboard
abstract fun hasFunctionWithName(names: Collection<String>, includeNested: Boolean = true, includeLocal: Boolean = true): Boolean
abstract fun hasFunctionWithName(name: String, vararg names: String, includeNested: Boolean = true, includeLocal: Boolean = true): Boolean
Determines whether the declaration has at least one function whose name matches any of the specified names.
Link copied to clipboard
Returns the number of functions present in the declaration.