trait BCForwardersGen extends BCAnnotGen with BCJGenSigGen
- Alphabetic
- By Inheritance
- BCForwardersGen
- BCJGenSigGen
- BCAnnotGen
- BCInnerClassGen
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
- def addForwarders(isRemoteClass: Boolean, jclass: ClassVisitor, jclassName: String, moduleClass: Global.Symbol): Unit
- def addRemoteExceptionAnnot(isRemoteClass: Boolean, isJMethodPublic: Boolean, meth: Global.Symbol): Unit
-
final
def
arrEncode(sb: Global.ScalaSigBytes): Array[String]
- Definition Classes
- BCAnnotGen
-
def
debugLevel: Int
- Definition Classes
- BCInnerClassGen
-
def
descriptorForErasedType(tp: Global.Type): String
- Definition Classes
- BCAnnotGen
-
def
emitAnnotations(fw: FieldVisitor, annotations: List[Global.AnnotationInfo]): Unit
- Definition Classes
- BCAnnotGen
-
def
emitAnnotations(mw: MethodVisitor, annotations: List[Global.AnnotationInfo]): Unit
- Definition Classes
- BCAnnotGen
-
def
emitAnnotations(cw: ClassVisitor, annotations: List[Global.AnnotationInfo]): Unit
- Definition Classes
- BCAnnotGen
-
def
emitArgument(av: AnnotationVisitor, name: String, arg: Global.ClassfileAnnotArg): Unit
- Definition Classes
- BCAnnotGen
-
def
emitAssocs(av: AnnotationVisitor, assocs: List[(Global.Name, Global.ClassfileAnnotArg)]): Unit
- Definition Classes
- BCAnnotGen
-
final
val
emitLines: Boolean
- Definition Classes
- BCInnerClassGen
-
def
emitParamAnnotations(jmethod: MethodVisitor, pannotss: List[List[Global.AnnotationInfo]]): Unit
- Definition Classes
- BCAnnotGen
-
def
emitParamNames(jmethod: MethodVisitor, params: List[Global.Symbol]): Unit
- Definition Classes
- BCAnnotGen
-
final
val
emitSource: Boolean
- Definition Classes
- BCInnerClassGen
-
final
val
emitVars: Boolean
- Definition Classes
- BCInnerClassGen
-
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
- def getExceptions(excs: List[Global.AnnotationInfo]): List[String]
-
def
getGenericSignature(sym: Global.Symbol, owner: Global.Symbol, memberTpe: Global.Type): String
- Definition Classes
- BCJGenSigGen
-
def
getGenericSignature(sym: Global.Symbol, owner: Global.Symbol): String
- Definition Classes
- BCJGenSigGen
-
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
-
def
ubytesToCharArray(bytes: Array[Byte]): Array[Char]
- Definition Classes
- BCAnnotGen
The Scala compiler and reflection APIs.