scala.tools.nsc.backend.jvm.GenASM

# JPlainBuilder

#### class JPlainBuilder extends JCommonBuilder with JAndroidBuilder

builder of plain classes

Linear Supertypes
JAndroidBuilder, JCommonBuilder, JBuilder, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering

1. Alphabetic
2. By inheritance

Inherited

1. JPlainBuilder
2. JAndroidBuilder
3. JCommonBuilder
4. JBuilder
5. AnyRef
6. Any

Implicitly

1. by any2stringadd
2. by any2stringfmt
3. by any2ArrowAssoc
4. by any2Ensuring

1. Hide All
2. Show all

Learn more about member selection
Visibility

1. Public
2. All

### Instance Constructors

1. #### new JPlainBuilder(bytecodeWriter: GenASM.BytecodeWriter)

### Type Members

1. #### case class EnclMethodEntry (owner: String, name: String, methodType: Type) extends Product with Serializable

### Value Members

1. #### final def !=(arg0: AnyRef): Boolean

   Definition Classes
     AnyRef

2. #### final def !=(arg0: Any): Boolean

   Definition Classes
     Any

3. #### final def ##(): Int

   Definition Classes
     AnyRef → Any

4. #### def +(other: String): String

   Implicit information
     This member is added by an implicit conversion from JPlainBuilder to StringAdd performed by method any2stringadd in scala.Predef.
   Definition Classes
     StringAdd

5. #### def ->[B](y: B): (JPlainBuilder, B)

   Implicit information
     This member is added by an implicit conversion from JPlainBuilder to ArrowAssoc[JPlainBuilder] performed by method any2ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()

6. #### final def ==(arg0: AnyRef): Boolean

   Definition Classes
     AnyRef

7. #### final def ==(arg0: Any): Boolean

   Definition Classes
     Any

8. #### val BoxesRunTime: String

9. #### val CLASS_CONSTRUCTOR_NAME: String

   Definition Classes
     JBuilder

10. #### val EMPTY_JTYPE_ARRAY: Array[Type]

    Definition Classes
      JBuilder

11. #### val EMPTY_STRING_ARRAY: Array[String]

    Definition Classes
      JBuilder

12. #### val INNER_CLASSES_FLAGS: Int

    Definition Classes
      JBuilder

13. #### val INSTANCE_CONSTRUCTOR_NAME: String

    Definition Classes
      JBuilder

14. #### val MIN_SWITCH_DENSITY: Double

15. #### val PublicStatic: Int

    Definition Classes
      JCommonBuilder

16. #### val PublicStaticFinal: Int

    Definition Classes
      JCommonBuilder

17. #### val StringBuilderClassName: String

18. #### val StringBuilderType: Type

19. #### def addCreatorCode(block: Global.icodes.BasicBlock): Unit

    Definition Classes
      JAndroidBuilder

20. #### def addForwarders(isRemoteClass: Boolean, jclass: ClassVisitor, jclassName: String, moduleClass: Global.Symbol): Unit

    Add forwarders for all methods defined in `module` that don't conflict with methods in the companion class of `module`.

    Add forwarders for all methods defined in `module` that don't conflict with methods in the companion class of `module`. A conflict arises when a method with the same name is defined both in a class and its companion object: method signature is not taken into account.

    Definition Classes
      JCommonBuilder

21. #### def addInnerClasses(csym: Global.Symbol, jclass: ClassVisitor): Unit

    Definition Classes
      JBuilder

22. #### def addModuleInstanceField(): Unit

23. #### def addRemoteExceptionAnnot(isRemoteClass: Boolean, isJMethodPublic: Boolean, meth: Global.Symbol): Unit

    Adds a @remote annotation, actual use unknown.

    Adds a @remote annotation, actual use unknown.

    Invoked from genMethod() and addForwarder().

    Definition Classes
      JCommonBuilder

24. #### def addStaticInit(mopt: Option[Global.icodes.IMethod]): Unit

25. #### final def asInstanceOf[T0]: T0

    Definition Classes
      Any

26. #### var clasz: Global.icodes.IClass

27. #### def clone(): AnyRef

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

28. #### def computeLocalVarsIndex(m: Global.icodes.IMethod): Unit

    Compute the indexes of each local variable of the given method.

    Compute the indexes of each local variable of the given method. *Does not assume the parameters come first!*

29. #### def createJAttribute(name: String, b: Array[Byte], offset: Int, len: Int): Attribute

    Definition Classes
      JBuilder

30. #### def createJClass(access: Int, name: String, signature: String, superName: String, interfaces: Array[String]): ClassWriter

    Returns a new ClassWriter for the class given by arguments.

    Returns a new ClassWriter for the class given by arguments.

    access

      the class's access flags. This parameter also indicates if the class is deprecated.

    name

      the internal name of the class.

    signature

      the signature of this class. May be `null` if the class is not a generic one, and does not extend or implement generic classes or interfaces.

    superName

      the internal of name of the super class. For interfaces, the super class is `Object`. May be `null`, but only for the `Object` class.

    interfaces

      the internal names of the class's interfaces (see `Type#getInternalName() getInternalName`). May be `null`.

    Definition Classes
      JBuilder

31. #### def debugLevel: Int

    Definition Classes
      JCommonBuilder

32. #### def descriptor(s: Global.Symbol): String

    Definition Classes
      JBuilder

33. #### def descriptor(k: Global.icodes.TypeKind): String

    Definition Classes
      JBuilder

34. #### def descriptor(t: Global.Type): String

    Definition Classes
      JBuilder

35. #### final def emit(opc: Int): Unit

36. #### def emitAnnotations(fw: FieldVisitor, annotations: List[Global.AnnotationInfo]): Unit

    Definition Classes
      JCommonBuilder

37. #### def emitAnnotations(mw: MethodVisitor, annotations: List[Global.AnnotationInfo]): Unit

    Definition Classes
      JCommonBuilder

38. #### def emitAnnotations(cw: ClassVisitor, annotations: List[Global.AnnotationInfo]): Unit

    Definition Classes
      JCommonBuilder

39. #### def emitArgument(av: AnnotationVisitor, name: String, arg: Global.ClassfileAnnotArg): Unit

    Definition Classes
      JCommonBuilder

40. #### def emitAssocs(av: AnnotationVisitor, assocs: List[(Global.Name, Global.ClassfileAnnotArg)]): Unit

    Definition Classes
      JCommonBuilder

41. #### val emitLines: Boolean

    Definition Classes
      JCommonBuilder

42. #### def emitParamAnnotations(jmethod: MethodVisitor, pannotss: List[List[Global.AnnotationInfo]]): Unit

    Definition Classes
      JCommonBuilder

43. #### val emitSource: Boolean

    Definition Classes
      JCommonBuilder

44. #### val emitVars: Boolean

    Definition Classes
      JCommonBuilder

45. #### def ensuring(cond: (JPlainBuilder) ⇒ Boolean, msg: ⇒ Any): JPlainBuilder

    Implicit information
      This member is added by an implicit conversion from JPlainBuilder to Ensuring[JPlainBuilder] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

46. #### def ensuring(cond: (JPlainBuilder) ⇒ Boolean): JPlainBuilder

    Implicit information
      This member is added by an implicit conversion from JPlainBuilder to Ensuring[JPlainBuilder] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

47. #### def ensuring(cond: Boolean, msg: ⇒ Any): JPlainBuilder

    Implicit information
      This member is added by an implicit conversion from JPlainBuilder to Ensuring[JPlainBuilder] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

48. #### def ensuring(cond: Boolean): JPlainBuilder

    Implicit information
      This member is added by an implicit conversion from JPlainBuilder to Ensuring[JPlainBuilder] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

49. #### final def eq(arg0: AnyRef): Boolean

    Definition Classes
      AnyRef

50. #### def equals(arg0: Any): Boolean

    Definition Classes
      AnyRef → Any

51. #### def finalize(): Unit

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )

52. #### def formatted(fmtstr: String): String

    Implicit information
      This member is added by an implicit conversion from JPlainBuilder to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()

53. #### def genClass(c: Global.icodes.IClass): Unit

54. #### def genCode(m: Global.icodes.IMethod, emitVars: Boolean, isStatic: Boolean): Unit

    Invoked from genMethod() and addStaticInit()

55. #### def genField(f: Global.icodes.IField): Unit

56. #### def genMethod(m: Global.icodes.IMethod, isJInterface: Boolean): Unit

57. #### def getAnnotPickle(jclassName: String, sym: Global.Symbol): Option[Global.AnnotationInfo]

    Returns a ScalaSignature annotation if it must be added to this class, none otherwise.

    Returns a ScalaSignature annotation if it must be added to this class, none otherwise. This annotation must be added to the class' annotations list when generating them.

    Depending on whether the returned option is defined, it adds to `jclass` one of: (a) the ScalaSig marker attribute (indicating that a scala-signature-annotation aka pickle is present in this class); or (b) the Scala marker attribute (indicating that a scala-signature-annotation aka pickle is to be found in another file).

    jclassName

      The class file that is being readied.

    sym

      The symbol for which the signature has been entered in the symData map. This is different than the symbol that is being generated in the case of a mirror class.

    returns

      An option that is:

      - defined and contains an AnnotationInfo of the ScalaSignature type, instantiated with the pickle signature for sym.
      - empty if the jclass/sym pair must not contain a pickle.
    Definition Classes
      JCommonBuilder

58. #### final def getClass(): Class[_]

    Definition Classes
      AnyRef → Any

59. #### def getCurrentCUnit(): Global.CompilationUnit

    Definition Classes
      JPlainBuilder → JCommonBuilder

60. #### def getExceptions(excs: List[Global.AnnotationInfo]): List[String]

    Quoting from JVMS 4.

    Quoting from JVMS 4.7.5 The Exceptions Attribute "The Exceptions attribute indicates which checked exceptions a method may throw. There may be at most one Exceptions attribute in each method_info structure."

    The contents of that attribute are determined by the `String[] exceptions` argument to ASM's ClassVisitor.visitMethod() This method returns such list of internal names.

    Definition Classes
      JCommonBuilder

61. #### def getGenericSignature(sym: Global.Symbol, owner: Global.Symbol): String

    returns

      - `null` if no Java signature is to be added (`null` is what ASM expects in these cases).
      - otherwise the signature in question
    Definition Classes
      JCommonBuilder

62. #### def hashCode(): Int

    Definition Classes
      AnyRef → Any

63. #### final def indexOf(local: Global.icodes.Local): Int

64. #### val innerClassBuffer: LinkedHashSet[Global.Symbol]

    Definition Classes
      JBuilder

65. #### def innerClassSymbolFor(s: Global.Symbol): Global.Symbol

    For given symbol return a symbol corresponding to a class that should be declared as inner class.

    For given symbol return a symbol corresponding to a class that should be declared as inner class.

    For example: class A { class B object C }

    then method will return: NoSymbol for A, the same symbol for A.B (corresponding to A$B class), and A$C$ symbol for A.C.

    Definition Classes
      JBuilder

66. #### def isAndroidParcelableClass(sym: Global.Symbol): Boolean

    Definition Classes
      JAndroidBuilder

67. #### def isDeprecated(sym: Global.Symbol): Boolean

    Definition Classes
      JBuilder

68. #### final def isInstanceOf[T0]: Boolean

    Definition Classes
      Any

69. #### def isParcelableClass: Boolean

70. #### var jMethodName: String

71. #### def javaArrayType(elem: Type): Type

    Definition Classes
      JBuilder

72. #### def javaName(sym: Global.Symbol): String

    Return the name of this symbol that can be used on the Java platform.

    Return the name of this symbol that can be used on the Java platform. It removes spaces from names.

    Special handling: scala.Nothing erases to scala.runtime.Nothing$ scala.Null erases to scala.runtime.Null$

    This is needed because they are not real classes, and they mean 'abrupt termination upon evaluation of that expression' or null respectively. This handling is done already in GenICode, but here we need to remove references from method signatures to these types, because such classes cannot exist in the classpath: the type checker will be very confused.

    Definition Classes
      JBuilder

73. #### def javaType(s: Global.Symbol): Type

    Definition Classes
      JBuilder

74. #### def javaType(t: Global.Type): Type

    Definition Classes
      JBuilder

75. #### def javaType(tk: Global.icodes.TypeKind): Type

    Definition Classes
      JBuilder

76. #### var jclass: ClassWriter

77. #### object jcode

    Just a namespace for utilities that encapsulate MethodVisitor idioms.

78. #### var jmethod: MethodVisitor

79. #### def legacyAddCreatorCode(clinit: MethodVisitor): Unit

    Definition Classes
      JAndroidBuilder

80. #### val mdesc_arglessvoid: String

    Definition Classes
      JBuilder

81. #### val mdesc_arrayClone: String

82. #### val mdesc_toString: String

83. #### var method: Global.icodes.IMethod

84. #### def mkArray(xs: Traversable[String]): Array[String]

    Definition Classes
      JBuilder

85. #### def mkArray(xs: Traversable[Type]): Array[Type]

    Specialized array conversion to prevent calling java.

    Specialized array conversion to prevent calling java.lang.reflect.Array.newInstance via TraversableOnce.toArray

    Definition Classes
      JBuilder

86. #### final def ne(arg0: AnyRef): Boolean

    Definition Classes
      AnyRef

87. #### final def notify(): Unit

    Definition Classes
      AnyRef

88. #### final def notifyAll(): Unit

    Definition Classes
      AnyRef

89. #### def pickleMarkerForeign: Attribute

    Definition Classes
      JCommonBuilder

90. #### def pickleMarkerLocal: Attribute

    Definition Classes
      JCommonBuilder

91. #### def serialVUID: Option[Long]

92. #### def sizeOf(k: Global.icodes.TypeKind): Int

93. #### val strMODULE_INSTANCE_FIELD: String

    Definition Classes
      JCommonBuilder

94. #### final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
      AnyRef

95. #### val tdesc_long: String

96. #### def thisDescr: String

97. #### var thisName: String

98. #### def toString(): String

    Definition Classes
      AnyRef → Any

99. #### def ubytesToCharArray(bytes: Array[Byte]): Array[Char]

    Definition Classes
      JCommonBuilder

100. #### val versionPickle: PickleBuffer

     Definition Classes
       JCommonBuilder

101. #### final def wait(): Unit

     Definition Classes
       AnyRef
     Annotations
       @throws( ... )

102. #### final def wait(arg0: Long, arg1: Int): Unit

     Definition Classes
       AnyRef
     Annotations
       @throws( ... )

103. #### final def wait(arg0: Long): Unit

     Definition Classes
       AnyRef
     Annotations
       @throws( ... )

104. #### def writeIfNotTooBig(label: String, jclassName: String, jclass: ClassWriter, sym: Global.Symbol): Unit

     Definition Classes
       JBuilder

105. #### def →[B](y: B): (JPlainBuilder, B)

     Implicit information
       This member is added by an implicit conversion from JPlainBuilder to ArrowAssoc[JPlainBuilder] performed by method any2ArrowAssoc in scala.Predef.
     Definition Classes
       ArrowAssoc

### Shadowed Implicit Value Members

1. #### val self: Any

   Implicit information
     This member is added by an implicit conversion from JPlainBuilder to StringAdd performed by method any2stringadd in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (jPlainBuilder: StringAdd).self

   Definition Classes
     StringAdd

2. #### val self: Any

   Implicit information
     This member is added by an implicit conversion from JPlainBuilder to StringFormat performed by method any2stringfmt in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (jPlainBuilder: StringFormat).self

   Definition Classes
     StringFormat

### Deprecated Value Members

1. #### def x: JPlainBuilder

   Implicit information
     This member is added by an implicit conversion from JPlainBuilder to ArrowAssoc[JPlainBuilder] performed by method any2ArrowAssoc in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (jPlainBuilder: ArrowAssoc[JPlainBuilder]).x

   Definition Classes
     ArrowAssoc
   Annotations
     @deprecated
   Deprecated

     (Since version 2.10.0) Use `leftOfArrow`instead``

2. #### def x: JPlainBuilder

   Implicit information
     This member is added by an implicit conversion from JPlainBuilder to Ensuring[JPlainBuilder] performed by method any2Ensuring in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (jPlainBuilder: Ensuring[JPlainBuilder]).x

   Definition Classes
     Ensuring
   Annotations
     @deprecated
   Deprecated

     (Since version 2.10.0) Use `resultOfEnsuring`instead``

### Inherited from JAndroidBuilder

### Inherited from JCommonBuilder

### Inherited from JBuilder

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd from JPlainBuilder to StringAdd

### Inherited by implicit conversion any2stringfmt from JPlainBuilder to StringFormat

### Inherited by implicit conversion any2ArrowAssoc from JPlainBuilder to ArrowAssoc[JPlainBuilder]

### Inherited by implicit conversion any2Ensuring from JPlainBuilder to Ensuring[JPlainBuilder]

### Ungrouped