Annotation

zio.blocks.typeid.Annotation
final case class Annotation(typeId: TypeId[_ <: AnyKind], args: List[AnnotationArg] = ...)

Represents a Scala/Java annotation on a type, method, or other declaration.

Annotations carry metadata that can be inspected at compile-time or runtime. Examples:

  • @deprecated("use newMethod", "1.0")
  • @tailrec
  • @JsonProperty("field_name")

Value parameters

args

The arguments passed to the annotation constructor

typeId

The TypeId of the annotation class

Attributes

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

Members list

Value members

Concrete methods

def fullName: String

Returns the fully qualified name of the annotation class.

Returns the fully qualified name of the annotation class.

Attributes

Source
Annotation.scala
def name: String

Returns the simple name of the annotation class.

Returns the simple name of the annotation class.

Attributes

Source
Annotation.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala