t

scala.reflect.internal

AnnotationInfos

trait AnnotationInfos extends Annotations

AnnotationInfo and its helpers

Self Type
SymbolTable
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnnotationInfos
  2. Annotations
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AnnotationApi extends AnyRef

    The API of Annotation instances.

    The API of Annotation instances. The main source of information about annotations is the scala.reflect.api.Annotations page.

    Definition Classes
    Annotations
  2. abstract class AnnotationExtractor extends AnyRef

    An extractor class to create and pattern match with syntax Annotation(tpe, scalaArgs, javaArgs).

    An extractor class to create and pattern match with syntax Annotation(tpe, scalaArgs, javaArgs). Here, tpe is the annotation type, scalaArgs the payload of Scala annotations, and javaArgs the payload of Java annotations.

    Definition Classes
    Annotations
  3. trait Annotatable[Self] extends AnyRef
  4. type Annotation = SymbolTable.AnnotationInfo

    Information about an annotation.

    Information about an annotation.

    Definition Classes
    AnnotationInfosAnnotations
  5. abstract class AnnotationInfo extends SymbolTable.AnnotationApi

    Typed information about an annotation.

    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.

  6. case class ArrayAnnotArg(args: Array[SymbolTable.ClassfileAnnotArg]) extends SymbolTable.ClassfileAnnotArg with SymbolTable.ArrayArgumentApi with Product with Serializable

    Represents an array of classfile annotation arguments

  7. type ArrayArgument = SymbolTable.ArrayAnnotArg

    The constructor/extractor for ArrayArgument instances.

    The constructor/extractor for ArrayArgument instances.

    Definition Classes
    AnnotationInfosAnnotations
  8. sealed abstract class ClassfileAnnotArg extends Product with SymbolTable.JavaArgumentApi

    Arguments to classfile annotations (which are written to bytecode as java annotations) are either:

    Arguments to classfile annotations (which are written to bytecode as java annotations) are either:

    • constants
    • arrays of constants
    • or nested classfile annotations
  9. class CompleteAnnotationInfo extends SymbolTable.AnnotationInfo
  10. class ErroneousAnnotation extends SymbolTable.CompleteAnnotationInfo
  11. type JavaArgument = SymbolTable.ClassfileAnnotArg

    A Java annotation argument

    A Java annotation argument

    Definition Classes
    AnnotationInfosAnnotations
  12. final class LazyAnnotationInfo extends SymbolTable.AnnotationInfo

    Symbol annotations parsed in Namer (typeCompleter of definitions) have to be lazy (#1782)

  13. case class LiteralAnnotArg(const: SymbolTable.Constant) extends SymbolTable.ClassfileAnnotArg with SymbolTable.LiteralArgumentApi with Product with Serializable

    Represents a compile-time Constant (Boolean, Byte, Short, Char, Int, Long, Float, Double, String, java.lang.Class or an instance of a Java enumeration value).

  14. type LiteralArgument = SymbolTable.LiteralAnnotArg

    The constructor/extractor for LiteralArgument instances.

    The constructor/extractor for LiteralArgument instances.

    Definition Classes
    AnnotationInfosAnnotations
  15. case class NestedAnnotArg(annInfo: SymbolTable.AnnotationInfo) extends SymbolTable.ClassfileAnnotArg with SymbolTable.NestedArgumentApi with Product with Serializable

    Represents a nested classfile annotation

  16. type NestedArgument = SymbolTable.NestedAnnotArg

    The constructor/extractor for NestedArgument instances.

    The constructor/extractor for NestedArgument instances.

    Definition Classes
    AnnotationInfosAnnotations
  17. case class ScalaSigBytes(bytes: Array[Byte]) extends SymbolTable.ClassfileAnnotArg with Product with Serializable

    A specific annotation argument that encodes an array of bytes as an array of Long.

    A specific annotation argument that encodes an array of bytes as an array of Long. The type of the argument declared in the annotation must be String. This specialised class is used to encode Scala signatures for reasons of efficiency, both in term of class-file size and in term of compiler performance. Details about the storage format of pickles at the bytecode level (classfile annotations) can be found in SIP-10.

  18. trait ArrayArgumentApi extends AnyRef

    API of ArrayArgument instances.

    API of ArrayArgument instances. The main source of information about annotations is the scala.reflect.api.Annotations page.

    Definition Classes
    Annotations
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use Annotation.tree to inspect annotation arguments

  19. abstract class ArrayArgumentExtractor extends AnyRef

    An extractor class to create and pattern match with syntax ArrayArgument(args) where args is the argument array.

    An extractor class to create and pattern match with syntax ArrayArgument(args) where args is the argument array.

    Definition Classes
    Annotations
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use Annotation.tree to inspect annotation arguments

  20. trait JavaArgumentApi extends AnyRef

    Has no special methods.

    Has no special methods. Is here to provides erased identity for CompoundType.

    Definition Classes
    Annotations
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use Annotation.tree to inspect annotation arguments

  21. trait LiteralArgumentApi extends AnyRef

    The API of LiteralArgument instances.

    The API of LiteralArgument instances. The main source of information about annotations is the scala.reflect.api.Annotations page.

    Definition Classes
    Annotations
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use Annotation.tree to inspect annotation arguments

  22. abstract class LiteralArgumentExtractor extends AnyRef

    An extractor class to create and pattern match with syntax LiteralArgument(value) where value is the constant argument.

    An extractor class to create and pattern match with syntax LiteralArgument(value) where value is the constant argument.

    Definition Classes
    Annotations
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use Annotation.tree to inspect annotation arguments

  23. trait NestedArgumentApi extends AnyRef

    API of NestedArgument instances.

    API of NestedArgument instances. The main source of information about annotations is the scala.reflect.api.Annotations page.

    Definition Classes
    Annotations
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use Annotation.tree to inspect annotation arguments

  24. abstract class NestedArgumentExtractor extends AnyRef

    An extractor class to create and pattern match with syntax NestedArgument(annotation) where annotation is the nested annotation.

    An extractor class to create and pattern match with syntax NestedArgument(annotation) where annotation is the nested annotation.

    Definition Classes
    Annotations
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use Annotation.tree to inspect annotation arguments

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit val AnnotationTag: ClassTag[SymbolTable.AnnotationInfo]
  5. val ArrayArgument: SymbolTable.ArrayAnnotArg.type

    The constructor/extractor for ArrayArgument instances.

    The constructor/extractor for ArrayArgument instances.

    Definition Classes
    AnnotationInfosAnnotations
  6. implicit val ArrayArgumentTag: ClassTag[SymbolTable.ArrayAnnotArg]
  7. implicit val JavaArgumentTag: ClassTag[SymbolTable.ClassfileAnnotArg]
  8. val LiteralArgument: SymbolTable.LiteralAnnotArg.type

    The constructor/extractor for LiteralArgument instances.

    The constructor/extractor for LiteralArgument instances.

    Definition Classes
    AnnotationInfosAnnotations
  9. implicit val LiteralArgumentTag: ClassTag[SymbolTable.LiteralAnnotArg]
  10. val NestedArgument: SymbolTable.NestedAnnotArg.type

    The constructor/extractor for NestedArgument instances.

    The constructor/extractor for NestedArgument instances.

    Definition Classes
    AnnotationInfosAnnotations
  11. implicit val NestedArgumentTag: ClassTag[SymbolTable.NestedAnnotArg]
  12. def annotationToTree(ann: SymbolTable.Annotation): SymbolTable.Tree
    Attributes
    protected[scala]
    Definition Classes
    AnnotationInfosAnnotations
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  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( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  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
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def treeToAnnotation(tree: SymbolTable.Tree): SymbolTable.Annotation
    Attributes
    protected[scala]
    Definition Classes
    AnnotationInfosAnnotations
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. object Annotation extends SymbolTable.AnnotationExtractor

    The constructor/extractor for Annotation instances.

    The constructor/extractor for Annotation instances.

    Definition Classes
    AnnotationInfosAnnotations
  31. object AnnotationInfo
  32. object ArrayAnnotArg extends SymbolTable.ArrayArgumentExtractor with Serializable
  33. object LiteralAnnotArg extends SymbolTable.LiteralArgumentExtractor with Serializable
  34. object NestedAnnotArg extends SymbolTable.NestedArgumentExtractor with Serializable
  35. object ThrownException

    Extracts the type of the thrown exception from an AnnotationInfo.

    Extracts the type of the thrown exception from an AnnotationInfo.

    Supports both “old-style” @throws(classOf[Exception]) as well as “new-style” @throws[Exception]("cause") annotations.

  36. object UnmappableAnnotArg extends SymbolTable.ClassfileAnnotArg with Product with Serializable
  37. object UnmappableAnnotation extends SymbolTable.CompleteAnnotationInfo

Inherited from Annotations

Inherited from AnyRef

Inherited from Any

API

Annotations

Extractors

Ungrouped