Class/Object

treehugger.AnnotationInfos

AnnotationInfo

Related Docs: object AnnotationInfo | package AnnotationInfos

Permalink

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.

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

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

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

    Permalink
    Definition Classes
    AnnotationInfoAbsAnnotationInfo

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def _1: Forest.Type

    Permalink

    Hand rolling Product.

    Hand rolling Product.

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

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

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

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def canEqual(other: Any): Boolean

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

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

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
  17. def hashCode(): Int

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

    Permalink
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def matches(clazz: Forest.Symbol): Boolean

    Permalink

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

  21. def metaAnnotations: List[Forest.AnnotationInfo]

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def pos: Position

    Permalink
  26. def productArity: Int

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

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

    Permalink
    Definition Classes
    Product
  29. def productPrefix: String

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

    Permalink

    Check whether any of the arguments mention a symbol

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

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

    Permalink

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

  33. def symbol: Forest.Symbol

    Permalink

    Annotations annotating annotations are confusing so I drew an example.

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

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

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

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

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

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

    Permalink
    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