Kotlin Analysis API Documentation
 

KaAnnotationValue

Last modified: 23 July 2024

KaAnnotationValue represents the value of an annotation argument. Annotation values must be compile-time constants and can be of the following types:

  • Primitive Types: Includes Int, Long, Short, Byte, Char, Boolean, Float, Double, and their unsigned counterparts.

  • String: A string literal.

  • Enum Entry: A reference to an enum entry.

  • Class Reference: A reference to a class using the ::class syntax.

  • Annotation: A nested annotation call.

  • Array: An array of any of the above types.