scala.tools.nsc.symtab.AnnotationInfos

AnnotationInfo

case class AnnotationInfo(atp: Type, args: List[Tree], assocs: List[(Name, ClassfileAnnotArg)]) extends AnnotationInfoBase with Product with Serializable

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
Serializable, Serializable, Product, Equals, AnnotationInfoBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. AnnotationInfo
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnnotationInfoBase
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AnnotationInfo(atp: Type, args: List[Tree], assocs: List[(Name, ClassfileAnnotArg)])

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. val args: List[Tree]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val assocs: List[(Name, ClassfileAnnotArg)]

  9. val atp: Type

  10. def canEqual(arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

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

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

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

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

  18. def isErroneous: Boolean

    Check whether the type or any of the arguments are erroneous

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. lazy val isTrivial: Boolean

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

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

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

    Definition Classes
    AnyRef
  24. def pos: Position

  25. def productArity: Int

    Definition Classes
    AnnotationInfo → Product
  26. def productElement(arg0: Int): Any

    Definition Classes
    AnnotationInfo → Product
  27. def productIterator: Iterator[Any]

    Definition Classes
    Product
  28. def productPrefix: String

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

    Check whether any of the arguments mention a symbol

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

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

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

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

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

    Definition Classes
    AnyRef
  34. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnnotationInfoBase

Inherited from AnyRef

Inherited from Any