KProperty
Represents a property, such as a named val
or var
declaration. Instances of this class are obtainable by the ::
operator.
See the Kotlin language documentation for more information.
Since Kotlin
1.0Parameters
the type of the property value.
Inheritors
Represents a property, such as a named val
or var
declaration. Instances of this class are obtainable by the ::
operator.
See the Kotlin language documentation for more information.
Since Kotlin
1.1Parameters
the type of the property value.
Inheritors
Represents a property, such as a named val
or var
declaration. Instances of this class are obtainable by the ::
operator.
See the Kotlin language documentation for more information.
Since Kotlin
1.0Parameters
the type of the property value.
Inheritors
Types
Represents a property accessor, which is a get
or set
method declared alongside the property. See the Kotlin language documentation for more information.
Properties
Annotations which are present on this element.
The getter of this property, used to obtain the value of the property.
true
if this property is const
. See the Kotlin language documentation for more information.
true
if this property is lateinit
. See the Kotlin language documentation for more information.
The name of this callable as it was declared in the source code. If the callable has no name, a special invented name is created. Nameless callables include:
The name of this callable as it was declared in the source code. If the callable has no name, a special invented name is created. Nameless callables include:
Parameters required to make a call to this callable. If this callable requires a this
instance or an extension receiver parameter, they come first in the list in that order.
The list of type parameters of this callable.
Visibility of this callable, or null
if its visibility cannot be represented in Kotlin.
Functions
Calls this callable with the specified list of arguments and returns the result. Throws an exception if the number of specified arguments is not equal to the size of parameters, or if their types do not match the types of the parameters.
Calls this callable with the specified mapping of parameters to arguments and returns the result. If a parameter is not found in the mapping and is not optional (as per KParameter.isOptional), or its type does not match the type of the provided value, an exception is thrown.