← Docs
kotlin-stdlib / kotlin.annotation / Target / <init>

<init>

Common
JVM
JS
Native
1.0
<init> ( vararg allowedTargets : AnnotationTarget )

This meta-annotation indicates the kinds of code elements which are possible targets of an annotation.

If the target meta-annotation is not present on an annotation declaration, the annotation is applicable to the following elements: CLASS , PROPERTY , FIELD , LOCAL_VARIABLE , VALUE_PARAMETER , CONSTRUCTOR , FUNCTION , PROPERTY_GETTER , PROPERTY_SETTER .

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .