interface KParameter : KAnnotatedElement
Represents a parameter passed to a function or a property getter/setter, including this
and extension receiver parameters.
enum class Kind Kind represents a particular position of the parameter declaration in the source code, such as an instance, an extension receiver parameter or a value parameter. |
abstract val index: Int 0-based index of this parameter in the parameter list of its containing callable. | |
abstract val isOptional: Boolean
| |
abstract val isVararg: Boolean
| |
abstract val kind: Kind Kind of this parameter. | |
abstract val name: String? Name of this parameter as it was declared in the source code, or | |
abstract val type: KType Type of this parameter. For a |
abstract val annotations: List<Annotation> Annotations which are present on this element. |
fun <T : Annotation> KAnnotatedElement.findAnnotation(): T? Returns an annotation of the given type on this element. |
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-parameter/index.html