sealed abstract class AnnotationInfo extends Forest.AbsAnnotationInfo with Product3[Forest.Type, List[Forest.Tree], List[(Forest.Name, Forest.ClassfileAnnotArg)]]
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 to ClassfileAnnotation
(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 form StaticAnnotation
.
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.
- Alphabetic
- By Inheritance
- AnnotationInfo
- Product3
- Product
- Equals
- AbsAnnotationInfo
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
args: List[Forest.Tree]
- Definition Classes
- AnnotationInfo → AbsAnnotationInfo
-
abstract
def
assocs: List[(Forest.Name, Forest.ClassfileAnnotArg)]
- Definition Classes
- AnnotationInfo → AbsAnnotationInfo
-
abstract
def
atp: Forest.Type
- Definition Classes
- AnnotationInfo → AbsAnnotationInfo
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
_1: Forest.Type
Hand rolling Product.
Hand rolling Product.
- Definition Classes
- AnnotationInfo → Product3
-
def
_2: List[Forest.Tree]
- Definition Classes
- AnnotationInfo → Product3
-
def
_3: List[(Forest.Name, Forest.ClassfileAnnotArg)]
- Definition Classes
- AnnotationInfo → Product3
- def argAtIndex(index: Int): Option[Forest.Tree]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(other: Any): Boolean
- Definition Classes
- AnnotationInfo → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def constantAtIndex(index: Int): Option[Forest.Constant]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- AnnotationInfo → Equals → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def hasArgWhich(p: (Forest.Tree) ⇒ Boolean): Boolean
-
def
hashCode(): Int
- Definition Classes
- AnnotationInfo → AnyRef → Any
- def intArg(index: Int): Option[Int]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matches(clazz: Forest.Symbol): Boolean
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).
-
def
metaAnnotations: List[Forest.AnnotationInfo]
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). -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def pos: Position
-
def
productArity: Int
- Definition Classes
- Product3 → Product
-
def
productElement(n: Int): Any
- Definition Classes
- Product3 → Product
- Annotations
- @throws( ... )
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- AnnotationInfo → Product
-
def
refsSymbol(sym: Forest.Symbol): Boolean
Check whether any of the arguments mention a symbol
- def setPos(pos: Position): AnnotationInfo.this.type
-
def
stringArg(index: Int): Option[String]
Change all ident's with Symbol "from" to instead use symbol "to"
-
def
symbol: Forest.Symbol
Annotations annotating annotations are confusing so I drew an example.
- def symbolArg(index: Int): Option[Forest.TermName]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )