KmValueParameter

Represents a value parameter of a Kotlin constructor, function, or property setter.

Various value parameter attributes can be read and manipulated via extension properties, such as KmValueParameter.declaresDefaultValue.

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Link copied to clipboard

Indicates that the corresponding value parameter declares a default value. Note that the default value itself can be a complex expression and is not available via metadata. Also note that in case of an override of a parameter with default value, the parameter in the derived method does not declare the default value, but the parameter is still optional at the call site because the default value from the base method is used.

Link copied to clipboard

Indicates that the corresponding value parameter has at least one annotation.

Link copied to clipboard

Indicates that the corresponding value parameter is crossinline.

Link copied to clipboard

Indicates that the corresponding value parameter is noinline.

Link copied to clipboard

the name of the value parameter

Link copied to clipboard
lateinit var type: KmType

Type of the value parameter. If this is a vararg parameter of type X, returns the type Array<out X>.

Link copied to clipboard

Type of the vararg value parameter, or null if this is not a vararg parameter.