Docs API
Scala 3/scala/scala.annotation/Annotation

Annotation

scala.annotation.Annotation
abstract class Annotation

A base class for annotations.

Annotations extending this class directly are not preserved in the classfile. To enable storing annotations in the classfile's Scala signature and make it available to Scala reflection and other tools, the annotation needs to inherit from scala.annotation.StaticAnnotation.

Annotation classes defined in Scala are not stored in classfiles in a Java-compatible manner and therefore not visible in Java reflection. In order to achieve this, the annotation has to be written in Java.

Attributes

Source
Annotation.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class beanGetter
class beanSetter
class field
class getter
class param
class setter
class elidable
class nowarn
class deprecated
class alpha
class capability
class experimental
class widen
class retains[Elems]
class retainsByName[Elems]
class retainsCap
class showAsInfix
class static
class strictfp
class switch
class tailrec
class targetName
class threadUnsafe
class unroll
class unused
class varargs
class BeanProperty
class consume
class use
class inline
class native
class noinline
class specialized
class throws[T]
class transient
class volatile
class fromAbove
class patternType
class SplicedType
class main
class unchecked
Show all
In this article

AltStyle によって変換されたページ (->オリジナル) /