enum class AnnotationTarget
Contains the list of code elements which are the possible annotation targets
Class, interface or object, annotation class is also included
Annotation class only
Generic type parameter (unsupported yet)
Property
Field, including property's backing field
Local variable
Value parameter of a function or a constructor
Constructor only (primary or secondary)
Function (constructors are not included)
Property getter only
Property setter only
Type usage
Any expression
File
Type alias
Ensures that this value is not less than the specified minimumValue.
fun <T : Comparable<T>> T.coerceAtLeast(minimumValue: T): T
Ensures that this value is not greater than the specified maximumValue.
fun <T : Comparable<T>> T.coerceAtMost(maximumValue: T): T
Ensures that this value lies in the specified range minimumValue..maximumValue.
fun <T : Comparable<T>> T.coerceIn( minimumValue: T?, maximumValue: T? ): T
Ensures that this value lies in the specified range.
fun <T : Comparable<T>> T.coerceIn( range: ClosedFloatingPointRange<T> ): T
fun <T : Comparable<T>> T.coerceIn(range: ClosedRange<T>): T
Creates a range from this Comparable value to the specified that value.
operator fun <T : Comparable<T>> T.rangeTo( that: T ): ClosedRange<T>
Annotation class only
Class, interface or object, annotation class is also included
Constructor only (primary or secondary)
Any expression
Field, including property's backing field
File
Function (constructors are not included)
Local variable
Property
Property getter only
Property setter only
Type usage
Generic type parameter (unsupported yet)
Type alias
Value parameter of a function or a constructor
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/index.html