scala.reflect.internal.AnnotationInfos

AnnotationInfo

sealed abstract class AnnotationInfo extends Product3[Type, List[Tree], List[(Name, 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.

Definition Classes
AnnotationInfos → AnnotationInfos
Source
AnnotationInfos.scala
Linear Supertypes
Product3[Type, List[Tree], List[(Name, ClassfileAnnotArg)]], Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. AnnotationInfo
  2. Product3
  3. Product
  4. Equals
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AnnotationInfo()

Abstract Value Members

  1. abstract def args: List[Tree]

  2. abstract def assocs: List[(Name, ClassfileAnnotArg)]

  3. abstract def atp: Type

  4. abstract def original: Tree

  5. abstract def setOriginal(t: Tree): AnnotationInfo.this.type

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def _1: Type

    Hand rolling Product.

    Hand rolling Product.

    Definition Classes
    AnnotationInfo → Product3
  7. def _2: List[Tree]

    Definition Classes
    AnnotationInfo → Product3
  8. def _3: List[(Name, ClassfileAnnotArg)]

    Definition Classes
    AnnotationInfo → Product3
  9. def argAtIndex(index: Int): Option[Tree]

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def canEqual(other: Any): Boolean

    Definition Classes
    AnnotationInfo → Equals
  12. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def constantAtIndex(index: Int): Option[Constant]

  14. def defaultTargets: List[Symbol]

    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).

  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(other: Any): Boolean

    Definition Classes
    AnnotationInfo → Equals → AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hasArgWhich(p: (Tree) ⇒ Boolean): Boolean

  20. def hashCode(): Int

    Definition Classes
    AnnotationInfo → AnyRef → Any
  21. def intArg(index: Int): Option[Int]

  22. def isErroneous: Boolean

    Check whether the type or any of the arguments are erroneous

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def isStatic: Boolean

  25. lazy val isTrivial: Boolean

  26. def matches(clazz: Symbol): Boolean

  27. def metaAnnotations: List[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).

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def pos: Position

  32. def productArity: Int

    Definition Classes
    Product3 → Product
  33. def productElement(n: Int): Any

    Definition Classes
    Product3 → Product
    Annotations
    @throws()
  34. def productIterator: Iterator[Any]

    Definition Classes
    Product
  35. def productPrefix: String

    Definition Classes
    AnnotationInfo → Product
  36. def refsSymbol(sym: Symbol): Boolean

    Check whether any of the arguments mention a symbol

  37. def setPos(pos: Position): AnnotationInfo.this.type

  38. def stringArg(index: Int): Option[String]

  39. def substIdentSyms(from: Symbol, to: Symbol): AnnotationInfo

    Change all ident's with Symbol "from" to instead use symbol "to"

  40. def symbol: Symbol

    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 {

  41. def symbolArg(index: Int): Option[TermName]

  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  43. def toString(): String

    Definition Classes
    AnyRef → Any
  44. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  45. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  46. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Product3[Type, List[Tree], List[(Name, ClassfileAnnotArg)]]

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any