Scala Compiler2.12.3-1 < 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 with BytecodeWriters
  Definition Classes
    jvm
- AsmpBytecodeWriter
- BCAnnotGen
- BCClassGen
- BCForwardersGen
- BCInnerClassGen
- BCJGenSigGen
- BCPickles
- BytecodeWriter
- CClassWriter
- ClassBytecodeWriter
- DirectToJarfileWriter
- DumpBytecodeWriter
- EnclosingMethodEntry
- InsnIterInsnList
- InsnIterMethodNode
- JAndroidBuilder
- JBeanInfoBuilder
- JCodeMethodN
- JCommonBuilder
- JMirrorBuilder
- LabelDefsFinder
- StdPhase
- delambdafyInline
- isJavaEntryPoint

c

scala.tools.nsc.backend.jvm.BCodeHelpers

# JMirrorBuilder 

###

#### class JMirrorBuilder extends JCommonBuilder

Source
  BCodeHelpers.scala

Linear Supertypes
JCommonBuilder, BCPickles, BCForwardersGen, BCJGenSigGen, BCAnnotGen, BCInnerClassGen, AnyRef, Any
Type Hierarchy
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. JMirrorBuilder
2. JCommonBuilder
3. BCPickles
4. BCForwardersGen
5. BCJGenSigGen
6. BCAnnotGen
7. BCInnerClassGen
8. AnyRef
9. 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

### Instance Constructors

1.  new JMirrorBuilder()

### 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 JMirrorBuilder to any2stringadd[JMirrorBuilder] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (JMirrorBuilder, B)
   Implicit
     This member is added by an implicit conversion from JMirrorBuilder to ArrowAssoc[JMirrorBuilder] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
6.  def addForwarders(isRemoteClass: Boolean, jclass: ClassVisitor, jclassName: String, moduleClass: Global.Symbol): Unit
   Definition Classes
     BCForwardersGen
7.  def addRemoteExceptionAnnot(isRemoteClass: Boolean, isJMethodPublic: Boolean, meth: Global.Symbol): Unit
   Definition Classes
     BCForwardersGen
8.  final def arrEncode(sb: Global.ScalaSigBytes): Array[String]
   Definition Classes
     BCAnnotGen
9.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
10.  def clone(): AnyRef
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
11.  def createJAttribute(name: String, b: Array[Byte], offset: Int, len: Int): Attribute
    Definition Classes
      BCPickles
12.  def debugLevel: Int
    Definition Classes
      BCInnerClassGen
13.  def descriptorForErasedType(tp: Global.Type): String
    Definition Classes
      BCAnnotGen
14.  def emitAnnotations(fw: FieldVisitor, annotations: List[Global.AnnotationInfo]): Unit
    Definition Classes
      BCAnnotGen
15.  def emitAnnotations(mw: MethodVisitor, annotations: List[Global.AnnotationInfo]): Unit
    Definition Classes
      BCAnnotGen
16.  def emitAnnotations(cw: ClassVisitor, annotations: List[Global.AnnotationInfo]): Unit
    Definition Classes
      BCAnnotGen
17.  def emitArgument(av: AnnotationVisitor, name: String, arg: Global.ClassfileAnnotArg): Unit
    Definition Classes
      BCAnnotGen
18.  def emitAssocs(av: AnnotationVisitor, assocs: List[(Global.Name, Global.ClassfileAnnotArg)]): Unit
    Definition Classes
      BCAnnotGen
19.  final val emitLines: Boolean
    Definition Classes
      BCInnerClassGen
20.  def emitParamAnnotations(jmethod: MethodVisitor, pannotss: List[List[Global.AnnotationInfo]]): Unit
    Definition Classes
      BCAnnotGen
21.  def emitParamNames(jmethod: MethodVisitor, params: List[Global.Symbol]): Unit
    Definition Classes
      BCAnnotGen
22.  final val emitSource: Boolean
    Definition Classes
      BCInnerClassGen
23.  final val emitVars: Boolean
    Definition Classes
      BCInnerClassGen
24.  def ensuring(cond: (JMirrorBuilder) ⇒ Boolean, msg: ⇒ Any): JMirrorBuilder
    Implicit
      This member is added by an implicit conversion from JMirrorBuilder to Ensuring[JMirrorBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
25.  def ensuring(cond: (JMirrorBuilder) ⇒ Boolean): JMirrorBuilder
    Implicit
      This member is added by an implicit conversion from JMirrorBuilder to Ensuring[JMirrorBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
26.  def ensuring(cond: Boolean, msg: ⇒ Any): JMirrorBuilder
    Implicit
      This member is added by an implicit conversion from JMirrorBuilder to Ensuring[JMirrorBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
27.  def ensuring(cond: Boolean): JMirrorBuilder
    Implicit
      This member is added by an implicit conversion from JMirrorBuilder to Ensuring[JMirrorBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
28.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
29.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
30.  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.
    Definition Classes
      BCAnnotGen
31.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
32.  def formatted(fmtstr: String): String
    Implicit
      This member is added by an implicit conversion from JMirrorBuilder to StringFormat[JMirrorBuilder] performed by method StringFormat in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()
33.  def genMirrorClass(moduleClass: Global.Symbol, cunit: Global.CompilationUnit): ClassNode
34.  def getAnnotPickle(jclassName: String, sym: Global.Symbol): Option[Global.AnnotationInfo]
    Definition Classes
      BCPickles
35.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
36.  def getExceptions(excs: List[Global.AnnotationInfo]): List[String]
    Definition Classes
      BCForwardersGen
37.  def getGenericSignature(sym: Global.Symbol, owner: Global.Symbol, memberTpe: Global.Type): String
    Definition Classes
      BCJGenSigGen
38.  def getGenericSignature(sym: Global.Symbol, owner: Global.Symbol): String
    Definition Classes
      BCJGenSigGen
39.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
40.  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
41.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
42.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
43.  final def notify(): Unit
    Definition Classes
      AnyRef
44.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
45.  def pickleMarkerForeign: Attribute
    Definition Classes
      BCPickles
46.  def pickleMarkerLocal: Attribute
    Definition Classes
      BCPickles
47.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
48.  def toString(): String
    Definition Classes
      AnyRef → Any
49.  def ubytesToCharArray(bytes: Array[Byte]): Array[Char]
    Definition Classes
      BCAnnotGen
50.  val versionPickle: PickleBuffer
    Definition Classes
      BCPickles
51.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
52.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
53.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
54.  def →[B](y: B): (JMirrorBuilder, B)
    Implicit
      This member is added by an implicit conversion from JMirrorBuilder to ArrowAssoc[JMirrorBuilder] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
      ArrowAssoc

### Inherited from JCommonBuilder

### Inherited from BCPickles

### Inherited from BCForwardersGen

### Inherited from BCJGenSigGen

### Inherited from BCAnnotGen

### Inherited from BCInnerClassGen

### Inherited from AnyRef

### Inherited from Any

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

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

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

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

### Ungrouped