treehugger.AnnotationInfos

AnnotationInfo

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.

Definition Classes
AnnotationInfosAnnotationInfos
Linear Supertypes
Product3[Forest.Type, List[Forest.Tree], List[(Forest.Name, Forest.ClassfileAnnotArg)]], Product, Equals, Forest.AbsAnnotationInfo, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AnnotationInfo
  2. Product3
  3. Product
  4. Equals
  5. AbsAnnotationInfo
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AnnotationInfo()

Abstract Value Members

  1. abstract def args: List[Forest.Tree]

    Definition Classes
    AnnotationInfoAbsAnnotationInfo
  2. abstract def assocs: List[(Forest.Name, Forest.ClassfileAnnotArg)]

    Definition Classes
    AnnotationInfoAbsAnnotationInfo
  3. abstract def atp: Forest.Type

    Definition Classes
    AnnotationInfoAbsAnnotationInfo

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: Forest.Type

    Hand rolling Product.

    Hand rolling Product.

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

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

    Definition Classes
    AnnotationInfo → Product3
  9. def argAtIndex(index: Int): Option[Forest.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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def constantAtIndex(index: Int): Option[Forest.Constant]

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

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

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

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

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

  19. def hashCode(): Int

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

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. 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).

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

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

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

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

    Definition Classes
    AnyRef
  27. def pos: Position

  28. def productArity: Int

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

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

    Definition Classes
    Product
  31. def productPrefix: String

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

    Check whether any of the arguments mention a symbol

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

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

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

  35. def symbol: Forest.Symbol

    Annotations annotating annotations are confusing so I drew an example.

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

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

    Definition Classes
    AnyRef
  38. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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

Inherited from Product

Inherited from Equals

Inherited from Forest.AbsAnnotationInfo

Inherited from AnyRef

Inherited from Any

Ungrouped