Hand rolling Product.
Hand rolling Product.
The default kind of members to which this annotation is attached.
The default kind of members to which this annotation is attached. For instance, for scala.deprecated defaultTargets = List(getter, setter, beanGetter, beanSetter).
Check whether the type or any of the arguments are erroneous
These are meta-annotations attached at the use site; they only apply to this annotation usage.
These are meta-annotations attached at the use site; they
only apply to this annotation usage. For instance, in
@(deprecated @setter @field) val ...
metaAnnotations = List(setter, field).
Check whether any of the arguments mention a symbol
Change all ident's with Symbol "from" to instead use symbol "to"
Annotations annotating annotations are confusing so I drew an example.
Annotations annotating annotations are confusing so I drew an example. Given the following code:
class A {
Typed information about an annotation. It can be attached to either a symbol or an annotated type.
Annotations are written to the classfile as Java annotations if
atp
conforms toClassfileAnnotation
(the classfile parser adds this interface to any Java annotation class).Annotations are pickled (written to scala symtab attribute in the classfile) if
atp
inherits formStaticAnnotation
.args
stores arguments to Scala annotations, represented as typed trees. Note that these trees are not transformed by any phases following the type-checker.assocs
stores arguments to classfile annotations as name-value pairs.