abstract class JCommonBuilder extends BCInnerClassGen with BCAnnotGen with BCForwardersGen with BCPickles
Ordering
- Alphabetic
- By Inheritance
Inherited
- JCommonBuilder
- BCPickles
- BCForwardersGen
- BCJGenSigGen
- BCAnnotGen
- BCInnerClassGen
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new JCommonBuilder()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from JCommonBuilder to any2stringadd[JCommonBuilder] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (JCommonBuilder, B)
- Implicit
- This member is added by an implicit conversion from JCommonBuilder to ArrowAssoc[JCommonBuilder] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addForwarders(isRemoteClass: Boolean, jclass: ClassVisitor, jclassName: String, moduleClass: Global.Symbol): Unit
- Definition Classes
- BCForwardersGen
-
def
addRemoteExceptionAnnot(isRemoteClass: Boolean, isJMethodPublic: Boolean, meth: Global.Symbol): Unit
- Definition Classes
- BCForwardersGen
-
final
def
arrEncode(sb: Global.ScalaSigBytes): Array[String]
- Definition Classes
- BCAnnotGen
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
createJAttribute(name: String, b: Array[Byte], offset: Int, len: Int): Attribute
- Definition Classes
- BCPickles
-
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
ensuring(cond: (JCommonBuilder) ⇒ Boolean, msg: ⇒ Any): JCommonBuilder
- Implicit
- This member is added by an implicit conversion from JCommonBuilder to Ensuring[JCommonBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (JCommonBuilder) ⇒ Boolean): JCommonBuilder
- Implicit
- This member is added by an implicit conversion from JCommonBuilder to Ensuring[JCommonBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): JCommonBuilder
- Implicit
- This member is added by an implicit conversion from JCommonBuilder to Ensuring[JCommonBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): JCommonBuilder
- Implicit
- This member is added by an implicit conversion from JCommonBuilder to Ensuring[JCommonBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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 annoations on the other hand are additionally emitted to the classfile in Java's format.
This means that Type instances within an AnnotaionInfo 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
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from JCommonBuilder to StringFormat[JCommonBuilder] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
def
getAnnotPickle(jclassName: String, sym: Global.Symbol): Option[Global.AnnotationInfo]
- Definition Classes
- BCPickles
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getExceptions(excs: List[Global.AnnotationInfo]): List[String]
- Definition Classes
- BCForwardersGen
-
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
pickleMarkerForeign: Attribute
- Definition Classes
- BCPickles
-
def
pickleMarkerLocal: Attribute
- Definition Classes
- BCPickles
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
ubytesToCharArray(bytes: Array[Byte]): Array[Char]
- Definition Classes
- BCAnnotGen
-
val
versionPickle: PickleBuffer
- Definition Classes
- BCPickles
-
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( ... )
-
def
→[B](y: B): (JCommonBuilder, B)
- Implicit
- This member is added by an implicit conversion from JCommonBuilder to ArrowAssoc[JCommonBuilder] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
The Scala compiler API.
The following resources are useful for Scala plugin/compiler development: