scala.reflect.api.Annotations
An extractor class to create and pattern match with syntax Annotation(tpe, scalaArgs, javaArgs). Here, tpe is the annotation type, scalaArgs the payload of Scala annotations, and javaArgs the payload of Java annotations.
Annotation(tpe, scalaArgs, javaArgs)
tpe
scalaArgs
javaArgs
(Since version 2.11.0) Use apply(tree: Tree): Annotation instead
apply(tree: Tree): Annotation
(Since version 2.11.0) Use Annotation.tree to inspect annotation arguments
Annotation.tree
An extractor class to create and pattern match with syntax
Annotation(tpe, scalaArgs, javaArgs)
. Here,tpe
is the annotation type,scalaArgs
the payload of Scala annotations, andjavaArgs
the payload of Java annotations.