trait AnnotationInfos extends Annotations
- Alphabetic
- By Inheritance
- AnnotationInfos
- Annotations
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
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
-
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, andjavaArgs
the payload of Java annotations.- Definition Classes
- Annotations
- trait Annotatable[Self] extends AnyRef
-
type
Annotation = SymbolTable.AnnotationInfo
Information about an annotation.
Information about an annotation.
- Definition Classes
- AnnotationInfos → Annotations
-
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 toClassfileAnnotation
(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 formStaticAnnotation
.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. -
case class
ArrayAnnotArg(args: Array[SymbolTable.ClassfileAnnotArg]) extends SymbolTable.ClassfileAnnotArg with SymbolTable.ArrayArgumentApi with Product with Serializable
Represents an array of classfile annotation arguments
-
type
ArrayArgument = SymbolTable.ArrayAnnotArg
The constructor/extractor for
ArrayArgument
instances.The constructor/extractor for
ArrayArgument
instances.- Definition Classes
- AnnotationInfos → Annotations
-
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
- class CompleteAnnotationInfo extends SymbolTable.AnnotationInfo
- class ErroneousAnnotation extends SymbolTable.CompleteAnnotationInfo
-
type
JavaArgument = SymbolTable.ClassfileAnnotArg
A Java annotation argument
A Java annotation argument
- Definition Classes
- AnnotationInfos → Annotations
-
final
class
LazyAnnotationInfo extends SymbolTable.AnnotationInfo
Symbol annotations parsed in
Namer
(typeCompleter of definitions) have to be lazy (#1782) -
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). -
type
LiteralArgument = SymbolTable.LiteralAnnotArg
The constructor/extractor for
LiteralArgument
instances.The constructor/extractor for
LiteralArgument
instances.- Definition Classes
- AnnotationInfos → Annotations
-
case class
NestedAnnotArg(annInfo: SymbolTable.AnnotationInfo) extends SymbolTable.ClassfileAnnotArg with SymbolTable.NestedArgumentApi with Product with Serializable
Represents a nested classfile annotation
-
type
NestedArgument = SymbolTable.NestedAnnotArg
The constructor/extractor for
NestedArgument
instances.The constructor/extractor for
NestedArgument
instances.- Definition Classes
- AnnotationInfos → Annotations
-
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 beString
. 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. -
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
-
abstract
class
ArrayArgumentExtractor extends AnyRef
An extractor class to create and pattern match with syntax
ArrayArgument(args)
whereargs
is the argument array.An extractor class to create and pattern match with syntax
ArrayArgument(args)
whereargs
is the argument array.- Definition Classes
- Annotations
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
Annotation.tree
to inspect annotation arguments
-
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
-
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
-
abstract
class
LiteralArgumentExtractor extends AnyRef
An extractor class to create and pattern match with syntax
LiteralArgument(value)
wherevalue
is the constant argument.An extractor class to create and pattern match with syntax
LiteralArgument(value)
wherevalue
is the constant argument.- Definition Classes
- Annotations
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
Annotation.tree
to inspect annotation arguments
-
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
-
abstract
class
NestedArgumentExtractor extends AnyRef
An extractor class to create and pattern match with syntax
NestedArgument(annotation)
whereannotation
is the nested annotation.An extractor class to create and pattern match with syntax
NestedArgument(annotation)
whereannotation
is the nested annotation.- Definition Classes
- Annotations
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use
Annotation.tree
to inspect annotation arguments
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit val AnnotationTag: ClassTag[SymbolTable.AnnotationInfo]
-
val
ArrayArgument: SymbolTable.ArrayAnnotArg.type
The constructor/extractor for
ArrayArgument
instances.The constructor/extractor for
ArrayArgument
instances.- Definition Classes
- AnnotationInfos → Annotations
- implicit val ArrayArgumentTag: ClassTag[SymbolTable.ArrayAnnotArg]
- implicit val JavaArgumentTag: ClassTag[SymbolTable.ClassfileAnnotArg]
-
val
LiteralArgument: SymbolTable.LiteralAnnotArg.type
The constructor/extractor for
LiteralArgument
instances.The constructor/extractor for
LiteralArgument
instances.- Definition Classes
- AnnotationInfos → Annotations
- implicit val LiteralArgumentTag: ClassTag[SymbolTable.LiteralAnnotArg]
-
val
NestedArgument: SymbolTable.NestedAnnotArg.type
The constructor/extractor for
NestedArgument
instances.The constructor/extractor for
NestedArgument
instances.- Definition Classes
- AnnotationInfos → Annotations
- implicit val NestedArgumentTag: ClassTag[SymbolTable.NestedAnnotArg]
-
def
annotationToTree(ann: SymbolTable.Annotation): SymbolTable.Tree
- Attributes
- protected[scala]
- Definition Classes
- AnnotationInfos → Annotations
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
treeToAnnotation(tree: SymbolTable.Tree): SymbolTable.Annotation
- Attributes
- protected[scala]
- Definition Classes
- AnnotationInfos → Annotations
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
object
Annotation extends SymbolTable.AnnotationExtractor
The constructor/extractor for
Annotation
instances.The constructor/extractor for
Annotation
instances.- Definition Classes
- AnnotationInfos → Annotations
- object AnnotationInfo
- object ArrayAnnotArg extends SymbolTable.ArrayArgumentExtractor with Serializable
- object LiteralAnnotArg extends SymbolTable.LiteralArgumentExtractor with Serializable
- object NestedAnnotArg extends SymbolTable.NestedArgumentExtractor with Serializable
-
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. - object UnmappableAnnotArg extends SymbolTable.ClassfileAnnotArg with Product with Serializable
- object UnmappableAnnotation extends SymbolTable.CompleteAnnotationInfo