scala.tools.nsc.symtab.AnnotationCheckers

AnnotationChecker

abstract class AnnotationChecker extends AnyRef

An additional checker for annotations on types. Typically these are registered by compiler plugins with the addAnnotationChecker method.

Source
AnnotationCheckers.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. AnnotationChecker
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AnnotationChecker()

Abstract Value Members

  1. abstract def annotationsConform(tpe1: Type, tpe2: Type): Boolean

    Check the annotations on two types conform.

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 adaptAnnotations(tree: Tree, mode: Int, pt: Type): Tree

    Adapt a tree that has an annotated type to the given type tp, taking into account the given mode (see method adapt in trait Typers).

    Adapt a tree that has an annotated type to the given type tp, taking into account the given mode (see method adapt in trait Typers). An implementation cannot rely on canAdaptAnnotations being called before. If the implementing class cannot do the adaptiong, it should return the tree unchanged.

  7. def adaptBoundsToAnnotations(bounds: List[TypeBounds], tparams: List[Symbol], targs: List[Type]): List[TypeBounds]

    Refine the bounds on type parameters to the given type arguments.

  8. def adaptTypeOfReturn(tree: Tree, pt: Type, default: ⇒ Type): Type

    Adapt the type of a return expression.

    Adapt the type of a return expression. The decision of an annotation checker whether the type should be adapted is based on the type of the expression which is returned, as well as the result type of the method (pt). By default, this method simply returns the passed default type.

  9. def addAnnotations(tree: Tree, tpe: Type): Type

    Modify the type that has thus far been inferred for a tree.

    Modify the type that has thus far been inferred for a tree. All this should do is add annotations.

  10. def annotationsGlb(tp: Type, ts: List[Type]): Type

    Refine the computed greatest lower bound of a list of types.

    Refine the computed greatest lower bound of a list of types. All this should do is add annotations.

  11. def annotationsLub(tp: Type, ts: List[Type]): Type

    Refine the computed least upper bound of a list of types.

    Refine the computed least upper bound of a list of types. All this should do is add annotations.

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def canAdaptAnnotations(tree: Tree, mode: Int, pt: Type): Boolean

    Decide whether this annotation checker can adapt a tree that has an annotated type to the given type tp, taking into account the given mode (see method adapt in trait Typers).

  14. def clone(): AnyRef

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any