Package-level declarations

Types and base classes used for annotation instance representation, reading, and writing.

Types

Link copied to clipboard
sealed class AnnotationArgument

An argument of an annotation instance.

Link copied to clipboard

An error extracting an AnnotationArgument for a parameter from the raw value.

Link copied to clipboard

Produces AnnotationArguments for given parameters, or null if the parameter is not present. Typically based on some underlying "raw" instance, i.e. IrAnnotation.

Link copied to clipboard

An error assembling an annotation from its arguments.

Link copied to clipboard

An error getting the raw value of an argument.

Link copied to clipboard
data class AnnotationParameter<P : AnnotationParameterType<*>>(val name: String, val index: Int, val type: P)

An annotation parameter definition.

Link copied to clipboard

The type of an annotation parameter.

Link copied to clipboard

An error writing the argument of an annotation parameter.

Link copied to clipboard

Writes an Symbol.Annotation.Instance to a raw annotation type Annotation.

Link copied to clipboard

A base class for implementing AnnotationArgumentProducer handles parameter types and wrapping for you. You only have to implement the typed extractor methods. If you want individual methods for each primitive type, use BasePrimitiveSpecificAnnotationArgumentProducer instead.

Link copied to clipboard

A base implementation of AnnotationWriter that handles the argument writing and annotation assembly in two steps. Mirrors BaseAnnotationArgumentProducer.

A variant of BaseAnnotationArgumentProducer that has a method for each primitive type.