AnnotationInstance

Represents the usage of an annotation that is applied to a given usage site.

Annotation usages themselves are not mutable. Each instance is immutable, so modifying behaviour must be done by adding and removing individual AnnotationInstances at the given usage site.

Types

Link copied to clipboard
class Builder(name: String)

Builder class to define a new annotation usage.

Link copied to clipboard
sealed interface Value

A constant value used in an annotation usage site. Constant values must be one of the following types:

Properties

Link copied to clipboard

Determines if the annotation is stored in binary output and visible for reflection.

Link copied to clipboard

The name of the package this annotation class is defined in.

Link copied to clipboard

The set of constant annotation parameter values for this usage.

Link copied to clipboard

This annotation's fully-qualified class name, including its package name and simple class name.

Link copied to clipboard

The declared name of this specific annotation class.

Link copied to clipboard

The annotation type.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Creates a new Builder based on this usage site.

Link copied to clipboard
open override fun toString(): String