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. def != (arg0: AnyRef): Boolean

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. val args : List[Tree]

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    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. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    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. def getClass (): java.lang.Class[_]

    Attributes
    final
    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. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. lazy val isTrivial : Boolean

  21. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    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. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  34. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnnotationInfoBase

Inherited from AnyRef

Inherited from Any