Object

scala.tools.nsc.Global

scalaPrimitives

Related Doc: package Global

Permalink

object scalaPrimitives extends ScalaPrimitives

Scala primitives, used in genicode

Source
Global.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. scalaPrimitives
  2. ScalaPrimitives
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink

    Test two objects for inequality.

    Test two objects for inequality.

    returns

    true if !(this == that), false otherwise.

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink

    Equivalent to x.hashCode except for boxed numeric types and null.

    Equivalent to x.hashCode except for boxed numeric types and null. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For null returns a hashcode where null.hashCode throws a NullPointerException.

    returns

    a hash value consistent with ==

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink

    The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    AnyRef → Any
  4. final val ADD: Int(10)

    Permalink
    Definition Classes
    ScalaPrimitives
  5. final val AND: Int(22)

    Permalink
    Definition Classes
    ScalaPrimitives
  6. final val APPLY: Int(71)

    Permalink
    Definition Classes
    ScalaPrimitives
  7. final val AS: Int(81)

    Permalink
    Definition Classes
    ScalaPrimitives
  8. final val ASR: Int(32)

    Permalink
    Definition Classes
    ScalaPrimitives
  9. final val B2B: Int(200)

    Permalink
    Definition Classes
    ScalaPrimitives
  10. final val B2C: Int(202)

    Permalink
    Definition Classes
    ScalaPrimitives
  11. final val B2D: Int(206)

    Permalink
    Definition Classes
    ScalaPrimitives
  12. final val B2F: Int(205)

    Permalink
    Definition Classes
    ScalaPrimitives
  13. final val B2I: Int(203)

    Permalink
    Definition Classes
    ScalaPrimitives
  14. final val B2L: Int(204)

    Permalink
    Definition Classes
    ScalaPrimitives
  15. final val B2S: Int(201)

    Permalink
    Definition Classes
    ScalaPrimitives
  16. final val BARRAY_GET: Int(141)

    Permalink
    Definition Classes
    ScalaPrimitives
  17. final val BARRAY_LENGTH: Int(132)

    Permalink
    Definition Classes
    ScalaPrimitives
  18. final val BARRAY_SET: Int(151)

    Permalink
    Definition Classes
    ScalaPrimitives
  19. final val BOX: Int(110)

    Permalink
    Definition Classes
    ScalaPrimitives
  20. final val C2B: Int(220)

    Permalink
    Definition Classes
    ScalaPrimitives
  21. final val C2C: Int(222)

    Permalink
    Definition Classes
    ScalaPrimitives
  22. final val C2D: Int(226)

    Permalink
    Definition Classes
    ScalaPrimitives
  23. final val C2F: Int(225)

    Permalink
    Definition Classes
    ScalaPrimitives
  24. final val C2I: Int(223)

    Permalink
    Definition Classes
    ScalaPrimitives
  25. final val C2L: Int(224)

    Permalink
    Definition Classes
    ScalaPrimitives
  26. final val C2S: Int(221)

    Permalink
    Definition Classes
    ScalaPrimitives
  27. final val CARRAY_GET: Int(143)

    Permalink
    Definition Classes
    ScalaPrimitives
  28. final val CARRAY_LENGTH: Int(134)

    Permalink
    Definition Classes
    ScalaPrimitives
  29. final val CARRAY_SET: Int(153)

    Permalink
    Definition Classes
    ScalaPrimitives
  30. final val COERCE: Int(101)

    Permalink
    Definition Classes
    ScalaPrimitives
  31. final val CONCAT: Int(100)

    Permalink
    Definition Classes
    ScalaPrimitives
  32. final val D2B: Int(260)

    Permalink
    Definition Classes
    ScalaPrimitives
  33. final val D2C: Int(262)

    Permalink
    Definition Classes
    ScalaPrimitives
  34. final val D2D: Int(266)

    Permalink
    Definition Classes
    ScalaPrimitives
  35. final val D2F: Int(265)

    Permalink
    Definition Classes
    ScalaPrimitives
  36. final val D2I: Int(263)

    Permalink
    Definition Classes
    ScalaPrimitives
  37. final val D2L: Int(264)

    Permalink
    Definition Classes
    ScalaPrimitives
  38. final val D2S: Int(261)

    Permalink
    Definition Classes
    ScalaPrimitives
  39. final val DARRAY_GET: Int(147)

    Permalink
    Definition Classes
    ScalaPrimitives
  40. final val DARRAY_LENGTH: Int(138)

    Permalink
    Definition Classes
    ScalaPrimitives
  41. final val DARRAY_SET: Int(157)

    Permalink
    Definition Classes
    ScalaPrimitives
  42. final val DIV: Int(13)

    Permalink
    Definition Classes
    ScalaPrimitives
  43. final val EQ: Int(42)

    Permalink
    Definition Classes
    ScalaPrimitives
  44. final val F2B: Int(250)

    Permalink
    Definition Classes
    ScalaPrimitives
  45. final val F2C: Int(252)

    Permalink
    Definition Classes
    ScalaPrimitives
  46. final val F2D: Int(256)

    Permalink
    Definition Classes
    ScalaPrimitives
  47. final val F2F: Int(255)

    Permalink
    Definition Classes
    ScalaPrimitives
  48. final val F2I: Int(253)

    Permalink
    Definition Classes
    ScalaPrimitives
  49. final val F2L: Int(254)

    Permalink
    Definition Classes
    ScalaPrimitives
  50. final val F2S: Int(251)

    Permalink
    Definition Classes
    ScalaPrimitives
  51. final val FARRAY_GET: Int(146)

    Permalink
    Definition Classes
    ScalaPrimitives
  52. final val FARRAY_LENGTH: Int(137)

    Permalink
    Definition Classes
    ScalaPrimitives
  53. final val FARRAY_SET: Int(156)

    Permalink
    Definition Classes
    ScalaPrimitives
  54. final val GE: Int(46)

    Permalink
    Definition Classes
    ScalaPrimitives
  55. final val GT: Int(47)

    Permalink
    Definition Classes
    ScalaPrimitives
  56. final val HASH: Int(87)

    Permalink
    Definition Classes
    ScalaPrimitives
  57. final val I2B: Int(230)

    Permalink
    Definition Classes
    ScalaPrimitives
  58. final val I2C: Int(232)

    Permalink
    Definition Classes
    ScalaPrimitives
  59. final val I2D: Int(236)

    Permalink
    Definition Classes
    ScalaPrimitives
  60. final val I2F: Int(235)

    Permalink
    Definition Classes
    ScalaPrimitives
  61. final val I2I: Int(233)

    Permalink
    Definition Classes
    ScalaPrimitives
  62. final val I2L: Int(234)

    Permalink
    Definition Classes
    ScalaPrimitives
  63. final val I2S: Int(231)

    Permalink
    Definition Classes
    ScalaPrimitives
  64. final val IARRAY_GET: Int(144)

    Permalink
    Definition Classes
    ScalaPrimitives
  65. final val IARRAY_LENGTH: Int(135)

    Permalink
    Definition Classes
    ScalaPrimitives
  66. final val IARRAY_SET: Int(154)

    Permalink
    Definition Classes
    ScalaPrimitives
  67. final val ID: Int(40)

    Permalink
    Definition Classes
    ScalaPrimitives
  68. final val IS: Int(80)

    Permalink
    Definition Classes
    ScalaPrimitives
  69. final val L2B: Int(240)

    Permalink
    Definition Classes
    ScalaPrimitives
  70. final val L2C: Int(242)

    Permalink
    Definition Classes
    ScalaPrimitives
  71. final val L2D: Int(246)

    Permalink
    Definition Classes
    ScalaPrimitives
  72. final val L2F: Int(245)

    Permalink
    Definition Classes
    ScalaPrimitives
  73. final val L2I: Int(243)

    Permalink
    Definition Classes
    ScalaPrimitives
  74. final val L2L: Int(244)

    Permalink
    Definition Classes
    ScalaPrimitives
  75. final val L2S: Int(241)

    Permalink
    Definition Classes
    ScalaPrimitives
  76. final val LARRAY_GET: Int(145)

    Permalink
    Definition Classes
    ScalaPrimitives
  77. final val LARRAY_LENGTH: Int(136)

    Permalink
    Definition Classes
    ScalaPrimitives
  78. final val LARRAY_SET: Int(155)

    Permalink
    Definition Classes
    ScalaPrimitives
  79. final val LE: Int(45)

    Permalink
    Definition Classes
    ScalaPrimitives
  80. final val LENGTH: Int(70)

    Permalink
    Definition Classes
    ScalaPrimitives
  81. final val LSL: Int(30)

    Permalink
    Definition Classes
    ScalaPrimitives
  82. final val LSR: Int(31)

    Permalink
    Definition Classes
    ScalaPrimitives
  83. final val LT: Int(44)

    Permalink
    Definition Classes
    ScalaPrimitives
  84. final val MOD: Int(14)

    Permalink
    Definition Classes
    ScalaPrimitives
  85. final val MUL: Int(12)

    Permalink
    Definition Classes
    ScalaPrimitives
  86. final val NE: Int(43)

    Permalink
    Definition Classes
    ScalaPrimitives
  87. final val NEG: Int(2)

    Permalink
    Definition Classes
    ScalaPrimitives
  88. final val NEW_BARRAY: Int(113)

    Permalink
    Definition Classes
    ScalaPrimitives
  89. final val NEW_CARRAY: Int(115)

    Permalink
    Definition Classes
    ScalaPrimitives
  90. final val NEW_DARRAY: Int(119)

    Permalink
    Definition Classes
    ScalaPrimitives
  91. final val NEW_FARRAY: Int(118)

    Permalink
    Definition Classes
    ScalaPrimitives
  92. final val NEW_IARRAY: Int(116)

    Permalink
    Definition Classes
    ScalaPrimitives
  93. final val NEW_LARRAY: Int(117)

    Permalink
    Definition Classes
    ScalaPrimitives
  94. final val NEW_OARRAY: Int(120)

    Permalink
    Definition Classes
    ScalaPrimitives
  95. final val NEW_SARRAY: Int(114)

    Permalink
    Definition Classes
    ScalaPrimitives
  96. final val NEW_ZARRAY: Int(112)

    Permalink
    Definition Classes
    ScalaPrimitives
  97. final val NI: Int(41)

    Permalink
    Definition Classes
    ScalaPrimitives
  98. final val NOT: Int(3)

    Permalink
    Definition Classes
    ScalaPrimitives
  99. final val OARRAY_GET: Int(148)

    Permalink
    Definition Classes
    ScalaPrimitives
  100. final val OARRAY_LENGTH: Int(139)

    Permalink
    Definition Classes
    ScalaPrimitives
  101. final val OARRAY_SET: Int(158)

    Permalink
    Definition Classes
    ScalaPrimitives
  102. final val OR: Int(20)

    Permalink
    Definition Classes
    ScalaPrimitives
  103. final val POS: Int(1)

    Permalink
    Definition Classes
    ScalaPrimitives
  104. final val S2B: Int(210)

    Permalink
    Definition Classes
    ScalaPrimitives
  105. final val S2C: Int(212)

    Permalink
    Definition Classes
    ScalaPrimitives
  106. final val S2D: Int(216)

    Permalink
    Definition Classes
    ScalaPrimitives
  107. final val S2F: Int(215)

    Permalink
    Definition Classes
    ScalaPrimitives
  108. final val S2I: Int(213)

    Permalink
    Definition Classes
    ScalaPrimitives
  109. final val S2L: Int(214)

    Permalink
    Definition Classes
    ScalaPrimitives
  110. final val S2S: Int(211)

    Permalink
    Definition Classes
    ScalaPrimitives
  111. final val SARRAY_GET: Int(142)

    Permalink
    Definition Classes
    ScalaPrimitives
  112. final val SARRAY_LENGTH: Int(133)

    Permalink
    Definition Classes
    ScalaPrimitives
  113. final val SARRAY_SET: Int(152)

    Permalink
    Definition Classes
    ScalaPrimitives
  114. final val SUB: Int(11)

    Permalink
    Definition Classes
    ScalaPrimitives
  115. final val SYNCHRONIZED: Int(90)

    Permalink
    Definition Classes
    ScalaPrimitives
  116. final val UNBOX: Int(111)

    Permalink
    Definition Classes
    ScalaPrimitives
  117. final val UPDATE: Int(72)

    Permalink
    Definition Classes
    ScalaPrimitives
  118. final val XOR: Int(21)

    Permalink
    Definition Classes
    ScalaPrimitives
  119. final val ZAND: Int(61)

    Permalink
    Definition Classes
    ScalaPrimitives
  120. final val ZARRAY_GET: Int(140)

    Permalink
    Definition Classes
    ScalaPrimitives
  121. final val ZARRAY_LENGTH: Int(131)

    Permalink
    Definition Classes
    ScalaPrimitives
  122. final val ZARRAY_SET: Int(150)

    Permalink
    Definition Classes
    ScalaPrimitives
  123. final val ZNOT: Int(50)

    Permalink
    Definition Classes
    ScalaPrimitives
  124. final val ZOR: Int(60)

    Permalink
    Definition Classes
    ScalaPrimitives
  125. def addPrimitive(s: Global.Symbol, code: Int): Unit

    Permalink

    Add a primitive operation to the map

    Add a primitive operation to the map

    Definition Classes
    ScalaPrimitives
  126. def addPrimitives(cls: Global.Symbol, method: Global.Name, code: Int): Unit

    Permalink
    Definition Classes
    ScalaPrimitives
  127. final def asInstanceOf[T0]: T0

    Permalink

    Cast the receiver object to be of type T0.

    Cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested type.

    returns

    the receiver object.

    Definition Classes
    Any
    Exceptions thrown

    ClassCastException if the receiver object is not an instance of the erasure of type T0.

  128. def clone(): AnyRef

    Permalink

    Create a copy of the receiver object.

    Create a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

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

    not specified by SLS as a member of AnyRef

  129. final def eq(arg0: AnyRef): Boolean

    Permalink

    Tests whether the argument (that) is a reference to the receiver object (this).

    Tests whether the argument (that) is a reference to the receiver object (this).

    The eq method implements an equivalence relation on non-null instances of AnyRef, and has three additional properties:

    • It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false.
    • For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false.
    • null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    Definition Classes
    AnyRef
  130. def equals(arg0: Any): Boolean

    Permalink

    The equality method for reference types.

    The equality method for reference types. Default implementation delegates to eq.

    See also equals in scala.Any.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    AnyRef → Any
  131. def finalize(): Unit

    Permalink

    Called by the garbage collector on the receiver object when there are no more references to the object.

    Called by the garbage collector on the receiver object when there are no more references to the object.

    The details of when and if the finalize method is invoked, as well as the interaction between finalize and non-local returns and exceptions, are all platform dependent.

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

    not specified by SLS as a member of AnyRef

  132. def generatedKind(code: Int): icodes.TypeKind

    Permalink

    If code is a coercion primitive, the result type

    If code is a coercion primitive, the result type

    Definition Classes
    ScalaPrimitives
  133. final def getClass(): Class[_]

    Permalink

    A representation that corresponds to the dynamic class of the receiver object.

    A representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    Definition Classes
    AnyRef → Any
    Note

    not specified by SLS as a member of AnyRef

  134. def getPrimitive(fun: Global.Symbol, tpe: Global.Type): Int

    Permalink

    Return the primitive code of the given operation.

    Return the primitive code of the given operation. If the operation is an array get/set, we inspect the type of the receiver to demux the operation.

    fun

    The method symbol

    tpe

    The type of the receiver object. It is used only for array operations

    Definition Classes
    ScalaPrimitives
  135. def getPrimitive(sym: Global.Symbol): Int

    Permalink

    Return the code for the given symbol.

    Return the code for the given symbol.

    Definition Classes
    ScalaPrimitives
  136. val global: Global.this.type

    Permalink
    Definition Classes
    scalaPrimitivesScalaPrimitives
  137. def hashCode(): Int

    Permalink

    The hashCode method for reference types.

    The hashCode method for reference types. See hashCode in scala.Any.

    returns

    the hash code value for this object.

    Definition Classes
    AnyRef → Any
  138. def init(): Unit

    Permalink

    Initialize the primitive map

    Initialize the primitive map

    Definition Classes
    ScalaPrimitives
  139. def isArithmeticOp(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  140. def isArrayGet(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  141. def isArrayLength(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  142. def isArrayNew(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  143. def isArrayOp(code: Int): Boolean

    Permalink

    Check whether the given operation code is an array operation.

    Check whether the given operation code is an array operation.

    Definition Classes
    ScalaPrimitives
  144. def isArraySet(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  145. def isBitwiseOp(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  146. def isCoercion(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  147. def isComparisonOp(code: Int): Boolean

    Permalink

    Check whether the given code is a comparison operator

    Check whether the given code is a comparison operator

    Definition Classes
    ScalaPrimitives
  148. final def isInstanceOf[T0]: Boolean

    Permalink

    Test whether the dynamic type of the receiver object is T0.

    Test whether the dynamic type of the receiver object is T0.

    Note that the result of the test is modulo Scala's erasure semantics. Therefore the expression 1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the specified type.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    Definition Classes
    Any
  149. def isLogicalOp(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  150. def isPrimitive(sym: Global.Symbol): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  151. def isReferenceEqualityOp(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  152. def isShiftOp(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  153. def isUniversalEqualityOp(code: Int): Boolean

    Permalink
    Definition Classes
    ScalaPrimitives
  154. final def ne(arg0: AnyRef): Boolean

    Permalink

    Equivalent to !(this eq that).

    Equivalent to !(this eq that).

    returns

    true if the argument is not a reference to the receiver object; false otherwise.

    Definition Classes
    AnyRef
  155. final def notify(): Unit

    Permalink

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

  156. final def notifyAll(): Unit

    Permalink

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  158. def toString(): String

    Permalink

    Creates a String representation of this object.

    Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.

    returns

    a String representation of the object.

    Definition Classes
    AnyRef → Any
  159. final val typeOfArrayOp: Map[Int, icodes.TypeKind]

    Permalink
    Definition Classes
    ScalaPrimitives
  160. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  161. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  162. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ScalaPrimitives

Inherited from AnyRef

Inherited from Any

Ungrouped