Ko Function Declaration
Represents a Kotlin function declaration.
Properties
List of annotations.
The parent of the declaration.
File containing the declaration.
Fully qualified name of the declaration.
Determines whatever declaration has abstract
modifier.
Determines whatever class has actual
modifier.
Determines whatever declaration has block body.
Determines whatever declaration has expect
modifier.
Determines whatever declaration has expression body.
Determines whatever the declaration has external
modifier.
Determines whatever declaration has final
modifier.
Determines whatever the declaration has infix
modifier.
Determines whatever the declaration has inline
modifier.
Determines whatever the declaration has internal modifier.
Determines whatever declaration has open
modifier.
Determines whatever the declaration has operator
modifier.
Determines whatever the declaration has override
modifier.
Determines whatever the declaration has private modifier.
Determines whatever the declaration has protected modifier.
Determines whatever the declaration has public modifier.
Determines whatever the declaration has public or no visibility modifier.
Indicates whether a declaration has a non-Unit
return value.
Determines whatever the declaration has suspend
modifier.
Determines whatever the declaration has tailrec
modifier.
Indicates whether the declaration is an extension.
Determines whatever this declaration has been initialized. Declaration that has been initialized has a body. e.g.
Determines whatever the declaration is defined at top level.
Documentation of the declaration.
The local classes present in the declaration.
The local declarations present in the declaration.
The local functions present in the declaration.
Text of the declaration with the location (file path, line and column).
List of modifiers.
The declaration's module name.
The number of annotations.
The number of local classes.
The number of local declarations.
The number of local functions.
The number of modifiers.
The number of parameters.
The number of type parameters.
The number of variables.
Package of the declaration.
Parameters of the declaration.
Project file path of the declaration or root project path of the file.
Receiver type of the declaration.
Return type of the declaration.
The declaration's source set name.
Type parameters of the declaration.
The variables present in the declaration.
Functions
Returns the number of annotations that satisfies the specified predicate present in the declaration.
Returns the number of local classes that satisfies the specified predicate present in the declaration.
Returns the number of local declarations that satisfies the specified predicate present in the declaration.
Returns the number of local functions that satisfies the specified predicate present in the declaration.
Returns the number of parameters that satisfies the specified predicate present in the declaration.
Returns the number of type parameters that satisfies the specified predicate present in the declaration.
Gets the number of variables that satisfies the specified predicate present in the declaration.
Determines whether the declaration has all annotations that satisfy the provided predicate.
Determines whether the declaration has annotations with all the specified KClass
type.
Determines whether the declaration has all local classes that satisfy the provided predicate.
Determines whether the declaration has all local declarations that satisfy the provided predicate.
Determines whether the declaration has all local functions that satisfy the provided predicate.
Determines whether the declaration has all specified modifiers.
Determines whether the declaration has all parameters that satisfy the provided predicate.
Determines whether the declaration has all type parameters that satisfy the provided predicate.
Determines whether the declaration has all variables that satisfy the provided predicate.
Determines whether the declaration has at least one annotation that satisfies the provided predicate.
Determines whether the declaration has at least one annotation of the specified KClass
type.
Returns true
if declaration represents the type of T.
Determines whatever declaration has any annotation.
Determines whether the declaration has annotations with all the specified names.
Determines whether the declaration has at least one annotation whose name matches any of the specified names.
Determines whether the declaration has at least one local class that satisfies the provided predicate.
Determines whatever the declaration has local classes.
Determines whether the declaration has local classes with all the specified names.
Determines whether the declaration has at least one local class whose name matches any of the specified names.
Determines whether the declaration has at least one local declaration that satisfies the provided predicate.
Determines whatever the declaration has local declarations.
Determines whether the declaration has at least one local function that satisfies the provided predicate.
Determines whatever the declaration has local functions.
Determines whether the declaration has local functions with all the specified names.
Determines whether the declaration has at least one local function whose name matches any of the specified names.
Determines whether the declaration has at least one specified modifier.
Determines whatever the declaration has modifiers.
Name of the declaration containing text.
Name of the declaration with suffix.
Name of the declaration matching regex.
Name of the declaration with prefix.
Determines whether the declaration has at least one parameter that satisfies the provided predicate.
Determines whatever declaration has any parameter.
Determines whether the declaration has parameters with all the specified names.
Determines whether the declaration has at least one parameter whose name matches any of the specified names.
Determines whatever declaration has a specified receiver type.
Determines whatever declaration has a receiver type of the specified Kotlin class.
Determines whatever declaration has receiver type.
Determines whatever declaration has a specified return type.
Determines whatever declaration has a return type of the specified Kotlin class.
Determines whatever declaration has return type.
Text of the declaration containing text.
Text of the declaration with suffix.
Text of the declaration matching regex.
Text of the declaration with prefix.
Determines whether the declaration has at least one type parameter that satisfies the provided predicate.
Determines whatever declaration has any type parameter.
Determines whether the declaration has type parameters with all the specified names.
Determines whether the declaration has at least one type parameter whose name matches any of the specified names.
Determines whether the declaration has at least one variable that satisfies the provided predicate.
Whether the declaration has variables.
Determines whether the declaration has variables with all the specified names.
Determines whether the declaration has at least one variable whose name matches any of the specified names.
Determines whatever declaration reside in module.
Determines whatever the declaration resides in a package.
Determines whatever declaration reside in file path or file reside in path.
Determines whatever declaration reside in source set.
Determines whatever the declaration resides outside a package.