AnnotationArg

zio.blocks.typeid.AnnotationArg
See theAnnotationArg companion trait
object AnnotationArg

Attributes

Companion
trait
Source
Annotation.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class ArrayArg(values: List[AnnotationArg]) extends AnnotationArg

An array of annotation arguments.

An array of annotation arguments.

Used for annotation parameters that accept arrays: @Ann(values = Array("a", "b", "c"))

Attributes

Source
Annotation.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ClassOf(tpe: TypeRepr) extends AnnotationArg

A class literal reference.

A class literal reference.

Used for classOf references: @Ann(classOf[String])

Attributes

Source
Annotation.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Const(value: Any) extends AnnotationArg

A constant value argument.

A constant value argument.

Value parameters

value

The constant value (String, Int, Long, Double, Boolean, etc.)

Attributes

Source
Annotation.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class EnumValue(enumType: TypeId[_ <: AnyKind], valueName: String) extends AnnotationArg

An enum value reference.

An enum value reference.

Used for enum constant references: @Retention(RetentionPolicy.RUNTIME)

Attributes

Source
Annotation.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Named(name: String, value: AnnotationArg) extends AnnotationArg

A named annotation argument.

A named annotation argument.

Used when arguments are specified by name: @deprecated(message = "use newMethod", since = "1.0")

Attributes

Source
Annotation.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Nested(annotation: Annotation) extends AnnotationArg

A nested annotation argument.

A nested annotation argument.

Used when an annotation contains another annotation: @Outer(@Inner("value"))

Attributes

Source
Annotation.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala