Scala Compiler2.12.5 < Back
 

# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  package backend
  Definition Classes
    nsc
-  package jvm
  Definition Classes
    backend
-  abstract class BCodeHelpers extends BCodeIdiomatic
  Definition Classes
    jvm
- BCAnnotGen
- BCClassGen
- BCForwardersGen
- BCInnerClassGen
- BCJGenSigGen
- BCPickles
- EnclosingMethodEntry
- InsnIterInsnList
- InsnIterMethodNode
- JAndroidBuilder
- JBeanInfoBuilder
- JCodeMethodN
- JCommonBuilder
- JMirrorBuilder
- LabelDefsFinder
- delambdafyInline
- isJavaEntryPoint

t

scala.tools.nsc.backend.jvm.BCodeHelpers

# BCAnnotGen 

###

#### trait BCAnnotGen extends BCInnerClassGen

Source
  BCodeHelpers.scala

Linear Supertypes
BCInnerClassGen, AnyRef, Any
Known Subclasses
PlainBodyBuilder, BCForwardersGen, JCommonBuilder, JMirrorBuilder, PlainSkelBuilder, SyncAndTryBuilder
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. BCAnnotGen
2. BCInnerClassGen
3. AnyRef
4. Any

Implicitly

1. by any2stringadd
2. by StringFormat
3. by Ensuring
4. by ArrowAssoc

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  def +(other: String): String
   Implicit
     This member is added by an implicit conversion from BCAnnotGen to any2stringadd[BCAnnotGen] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (BCAnnotGen, B)
   Implicit
     This member is added by an implicit conversion from BCAnnotGen to ArrowAssoc[BCAnnotGen] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
6.  final def arrEncode(sb: Global.ScalaSigBytes): Array[String]
7.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
8.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @native() @throws( ... )
9.  def debugLevel: Int
   Definition Classes
     BCInnerClassGen
10.  def descriptorForErasedType(tp: Global.Type): String
11.  def emitAnnotations(fw: FieldVisitor, annotations: List[Global.AnnotationInfo]): Unit
12.  def emitAnnotations(mw: MethodVisitor, annotations: List[Global.AnnotationInfo]): Unit
13.  def emitAnnotations(cw: ClassVisitor, annotations: List[Global.AnnotationInfo]): Unit
14.  def emitArgument(av: AnnotationVisitor, name: String, arg: Global.ClassfileAnnotArg): Unit
15.  def emitAssocs(av: AnnotationVisitor, assocs: List[(Global.Name, Global.ClassfileAnnotArg)]): Unit
16.  final val emitLines: Boolean
    Definition Classes
      BCInnerClassGen
17.  def emitParamAnnotations(jmethod: MethodVisitor, pannotss: List[List[Global.AnnotationInfo]]): Unit
18.  def emitParamNames(jmethod: MethodVisitor, params: List[Global.Symbol]): Unit
19.  final val emitSource: Boolean
    Definition Classes
      BCInnerClassGen
20.  final val emitVars: Boolean
    Definition Classes
      BCInnerClassGen
21.  def ensuring(cond: (BCAnnotGen) ⇒ Boolean, msg: ⇒ Any): BCAnnotGen
    Implicit
      This member is added by an implicit conversion from BCAnnotGen to Ensuring[BCAnnotGen] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
22.  def ensuring(cond: (BCAnnotGen) ⇒ Boolean): BCAnnotGen
    Implicit
      This member is added by an implicit conversion from BCAnnotGen to Ensuring[BCAnnotGen] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
23.  def ensuring(cond: Boolean, msg: ⇒ Any): BCAnnotGen
    Implicit
      This member is added by an implicit conversion from BCAnnotGen to Ensuring[BCAnnotGen] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
24.  def ensuring(cond: Boolean): BCAnnotGen
    Implicit
      This member is added by an implicit conversion from BCAnnotGen to Ensuring[BCAnnotGen] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
25.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
26.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
27.  def erasedType(tp: Global.Type): Global.Type

    Annotations are not processed by the compilation pipeline like ordinary trees.

    Annotations are not processed by the compilation pipeline like ordinary trees. Instead, the typer extracts them into AnnotationInfo objects which are attached to the corresponding symbol (sym.annotations) or type (as an AnnotatedType, eliminated by erasure).

    For Scala annotations this is OK: they are stored in the pickle and ignored by the backend. Java annotations on the other hand are additionally emitted to the classfile in Java's format.

    This means that Type instances within an AnnotationInfo reach the backend non-erased. Examples:

    - @(javax.annotation.Resource @annotation.meta.getter) val x = 0 Here, annotationInfo.atp is an AnnotatedType.
    - @SomeAnnotation[T] val x = 0 In principle, the annotationInfo.atp is a non-erased type ref. However, this cannot actually happen because Java annotations cannot be generic.
    - @javax.annotation.Resource(`type` = classOf[List[_]]) val x = 0 The annotationInfo.assocs contains a LiteralAnnotArg(Constant(tp)) where tp is the non-erased existential type.
28.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
29.  def formatted(fmtstr: String): String
    Implicit
      This member is added by an implicit conversion from BCAnnotGen to StringFormat[BCAnnotGen] performed by method StringFormat in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()
30.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
31.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
32.  final def internalName(sym: Global.Symbol): String

    The class internal name for a given class symbol.

    The class internal name for a given class symbol.

    Definition Classes
      BCInnerClassGen
33.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
34.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
35.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
36.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
37.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
38.  def toString(): String
    Definition Classes
      AnyRef → Any
39.  def ubytesToCharArray(bytes: Array[Byte]): Array[Char]
40.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
41.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
42.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )
43.  def →[B](y: B): (BCAnnotGen, B)
    Implicit
      This member is added by an implicit conversion from BCAnnotGen to ArrowAssoc[BCAnnotGen] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
      ArrowAssoc

### Inherited from BCInnerClassGen

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd from BCAnnotGen to any2stringadd[BCAnnotGen]

### Inherited by implicit conversion StringFormat from BCAnnotGen to StringFormat[BCAnnotGen]

### Inherited by implicit conversion Ensuring from BCAnnotGen to Ensuring[BCAnnotGen]

### Inherited by implicit conversion ArrowAssoc from BCAnnotGen to ArrowAssoc[BCAnnotGen]

### Ungrouped