scala.reflect.internal

ClassfileConstants

object ClassfileConstants

Source
ClassfileConstants.scala
Linear Supertypes
Content Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ClassfileConstants
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract class FlagTranslation extends AnyRef

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Test two objects for inequality.

    Test two objects for inequality.

    returns

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

    Definition Classes
    Any
  3. final def ##(): Int

    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
  4. final def ==(arg0: AnyRef): Boolean

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

    Test two objects for equality.

    Test two objects for equality. 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
    Any
  6. final val ANNOTATION_TAG: Char('@')

  7. final val ARRAY_TAG: Char('[')

  8. final val BOOL_TAG: Char('Z')

  9. final val BYTE_TAG: Char('B')

  10. final val CHAR_TAG: Char('C')

  11. final val CLASS_TAG: Char('c')

  12. final val CONSTANT_CLASS: Int(7)

  13. final val CONSTANT_DOUBLE: Int(6)

  14. final val CONSTANT_FIELDREF: Int(9)

  15. final val CONSTANT_FLOAT: Int(4)

  16. final val CONSTANT_INTEGER: Int(3)

  17. final val CONSTANT_INTFMETHODREF: Int(11)

  18. final val CONSTANT_LONG: Int(5)

  19. final val CONSTANT_METHODREF: Int(10)

  20. final val CONSTANT_NAMEANDTYPE: Int(12)

  21. final val CONSTANT_STRING: Int(8)

  22. final val CONSTANT_UNICODE: Int(2)

  23. final val CONSTANT_UTF8: Int(1)

  24. final val DOUBLE_TAG: Char('D')

  25. final val ENUM_TAG: Char('e')

  26. final val FLOAT_TAG: Char('F')

  27. object FlagTranslation extends FlagTranslation

  28. final val INT_TAG: Char('I')

  29. final val JAVA_ACC_ABSTRACT: Int(1024)

  30. final val JAVA_ACC_ANNOTATION: Int(8192)

  31. final val JAVA_ACC_BRIDGE: Int(64)

  32. final val JAVA_ACC_ENUM: Int(16384)

  33. final val JAVA_ACC_FINAL: Int(16)

  34. final val JAVA_ACC_INTERFACE: Int(512)

  35. final val JAVA_ACC_NATIVE: Int(256)

  36. final val JAVA_ACC_PRIVATE: Int(2)

  37. final val JAVA_ACC_PROTECTED: Int(4)

  38. final val JAVA_ACC_PUBLIC: Int(1)

    (see http://java.

    (see http://java.sun.com/docs/books/jvms/second_edition/jvms-clarify.html)

    If the ACC_INTERFACE flag is set, the ACC_ABSTRACT flag must also be set (ch. 2.13.1).

    A class file cannot have both its ACC_FINAL and ACC_ABSTRACT flags set (ch. 2.8.2).

    A field may have at most one of its ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC flags set (ch. 2.7.4).

    A field may not have both its ACC_FINAL and ACC_VOLATILE flags set (ch. 2.9.1).

    If a method has its ACC_ABSTRACT flag set it must not have any of its ACC_FINAL, ACC_NATIVE, ACC_PRIVATE, ACC_STATIC, ACC_STRICT, or ACC_SYNCHRONIZED flags set (ch. 2.13.3.2).

    All interface methods must have their ACC_ABSTRACT and ACC_PUBLIC flags set.

    Note for future reference: see this thread on ACC_SUPER and how its enforcement differs on the android vm. https://groups.google.com/forum/?hl=en#!topic/jvm-languages/jVhzvq8-ZIk

  39. final val JAVA_ACC_STATIC: Int(8)

  40. final val JAVA_ACC_STRICT: Int(2048)

  41. final val JAVA_ACC_SUPER: Int(32)

  42. final val JAVA_ACC_SYNCHRONIZED: Int(32)

  43. final val JAVA_ACC_SYNTHETIC: Int(4096)

  44. final val JAVA_ACC_TRANSIENT: Int(128)

  45. final val JAVA_ACC_VARARGS: Int(128)

  46. final val JAVA_ACC_VOLATILE: Int(64)

  47. final val JAVA_MAGIC: Int(-889275714)

  48. final val JAVA_MAJOR_VERSION: Int(45)

  49. final val JAVA_MINOR_VERSION: Int(3)

  50. final val LONG_TAG: Char('J')

  51. final val OBJECT_TAG: Char('L')

  52. final val SCALA_NOTHING: String("scala.runtime.Nothing$")

  53. final val SCALA_NULL: String("scala.runtime.Null$")

  54. final val SHORT_TAG: Char('S')

  55. final val STRING_TAG: Char('s')

  56. final val TVAR_TAG: Char('T')

  57. final val T_BOOLEAN: Int(4)

  58. final val T_BYTE: Int(8)

  59. final val T_CHAR: Int(5)

  60. final val T_DOUBLE: Int(7)

  61. final val T_FLOAT: Int(6)

  62. final val T_INT: Int(10)

  63. final val T_LONG: Int(11)

  64. final val T_SHORT: Int(9)

  65. final val VOID_TAG: Char('V')

  66. final val aaload: Int(50)

  67. final val aastore: Int(83)

  68. final val aconst_null: Int(1)

  69. final val aload: Int(25)

  70. final val aload_0: Int(42)

  71. final val aload_1: Int(43)

  72. final val aload_2: Int(44)

  73. final val aload_3: Int(45)

  74. final val anewarray: Int(189)

  75. final val areturn: Int(176)

  76. final val arraylength: Int(190)

  77. final def asInstanceOf[T0]: T0

    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.

  78. final val astore: Int(58)

  79. final val astore_0: Int(75)

  80. final val astore_1: Int(76)

  81. final val astore_2: Int(77)

  82. final val astore_3: Int(78)

  83. final val athrow: Int(191)

  84. final val baload: Int(51)

  85. final val bastore: Int(84)

  86. final val bipush: Int(16)

  87. final val breakpoint: Int(202)

  88. final val caload: Int(52)

  89. final val castore: Int(85)

  90. final val checkcast: Int(192)

  91. def clone(): AnyRef

    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

  92. final val d2f: Int(144)

  93. final val d2i: Int(142)

  94. final val d2l: Int(143)

  95. final val dadd: Int(99)

  96. final val daload: Int(49)

  97. final val dastore: Int(82)

  98. final val dcmpg: Int(152)

  99. final val dcmpl: Int(151)

  100. final val dconst_0: Int(14)

  101. final val dconst_1: Int(15)

  102. final val ddiv: Int(111)

  103. final val dload: Int(24)

  104. final val dload_0: Int(38)

  105. final val dload_1: Int(39)

  106. final val dload_2: Int(40)

  107. final val dload_3: Int(41)

  108. final val dmul: Int(107)

  109. final val dneg: Int(119)

  110. final val drem: Int(115)

  111. final val dreturn: Int(175)

  112. final val dstore: Int(57)

  113. final val dstore_0: Int(71)

  114. final val dstore_1: Int(72)

  115. final val dstore_2: Int(73)

  116. final val dstore_3: Int(74)

  117. final val dsub: Int(103)

  118. final val dup: Int(89)

  119. final val dup2: Int(92)

  120. final val dup2_x1: Int(93)

  121. final val dup2_x2: Int(94)

  122. final val dup_x1: Int(90)

  123. final val dup_x2: Int(91)

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

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

    Tests whether the argument (arg0) 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
  125. def equals(arg0: Any): Boolean

    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
  126. final val f2d: Int(141)

  127. final val f2i: Int(139)

  128. final val f2l: Int(140)

  129. final val fadd: Int(98)

  130. final val faload: Int(48)

  131. final val fastore: Int(81)

  132. final val fcmpg: Int(150)

  133. final val fcmpl: Int(149)

  134. final val fconst_0: Int(11)

  135. final val fconst_1: Int(12)

  136. final val fconst_2: Int(13)

  137. final val fdiv: Int(110)

  138. def finalize(): Unit

    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()
    Note

    not specified by SLS as a member of AnyRef

  139. final val fload: Int(23)

  140. final val fload_0: Int(34)

  141. final val fload_1: Int(35)

  142. final val fload_2: Int(36)

  143. final val fload_3: Int(37)

  144. final val fmul: Int(106)

  145. final val fneg: Int(118)

  146. final val frem: Int(114)

  147. final val freturn: Int(174)

  148. final val fstore: Int(56)

  149. final val fstore_0: Int(67)

  150. final val fstore_1: Int(68)

  151. final val fstore_2: Int(69)

  152. final val fstore_3: Int(70)

  153. final val fsub: Int(102)

  154. final def getClass(): Class[_]

    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

  155. final val getfield: Int(180)

  156. final val getstatic: Int(178)

  157. final val goto: Int(167)

  158. final val goto_w: Int(200)

  159. def hashCode(): Int

    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
  160. final val i2b: Int(145)

  161. final val i2c: Int(146)

  162. final val i2d: Int(135)

  163. final val i2f: Int(134)

  164. final val i2l: Int(133)

  165. final val i2s: Int(147)

  166. final val iadd: Int(96)

  167. final val iaload: Int(46)

  168. final val iand: Int(126)

  169. final val iastore: Int(79)

  170. final val iconst_0: Int(3)

  171. final val iconst_1: Int(4)

  172. final val iconst_2: Int(5)

  173. final val iconst_3: Int(6)

  174. final val iconst_4: Int(7)

  175. final val iconst_5: Int(8)

  176. final val iconst_m1: Int(2)

  177. final val idiv: Int(108)

  178. final val if_acmpeq: Int(165)

  179. final val if_acmpne: Int(166)

  180. final val if_icmpeq: Int(159)

  181. final val if_icmpge: Int(162)

  182. final val if_icmpgt: Int(163)

  183. final val if_icmple: Int(164)

  184. final val if_icmplt: Int(161)

  185. final val if_icmpne: Int(160)

  186. final val ifeq: Int(153)

  187. final val ifge: Int(156)

  188. final val ifgt: Int(157)

  189. final val ifle: Int(158)

  190. final val iflt: Int(155)

  191. final val ifne: Int(154)

  192. final val ifnonnull: Int(199)

  193. final val ifnull: Int(198)

  194. final val iinc: Int(132)

  195. final val iload: Int(21)

  196. final val iload_0: Int(26)

  197. final val iload_1: Int(27)

  198. final val iload_2: Int(28)

  199. final val iload_3: Int(29)

  200. final val impdep1: Int(254)

  201. final val impdep2: Int(255)

  202. final val imul: Int(104)

  203. final val ineg: Int(116)

  204. final val instanceof: Int(193)

  205. final val invokeinterface: Int(185)

  206. final val invokespecial: Int(183)

  207. final val invokestatic: Int(184)

  208. final val invokevirtual: Int(182)

  209. final val ior: Int(128)

  210. final val irem: Int(112)

  211. final val ireturn: Int(172)

  212. final def isInstanceOf[T0]: Boolean

    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
  213. final val ishl: Int(120)

  214. final val ishr: Int(122)

  215. final val istore: Int(54)

  216. final val istore_0: Int(59)

  217. final val istore_1: Int(60)

  218. final val istore_2: Int(61)

  219. final val istore_3: Int(62)

  220. final val isub: Int(100)

  221. final val iushr: Int(124)

  222. final val ixor: Int(130)

  223. final val jsr: Int(168)

  224. final val jsr_w: Int(201)

  225. final val l2d: Int(138)

  226. final val l2f: Int(137)

  227. final val l2i: Int(136)

  228. final val ladd: Int(97)

  229. final val laload: Int(47)

  230. final val land: Int(127)

  231. final val lastore: Int(80)

  232. final val lcmp: Int(148)

  233. final val lconst_0: Int(9)

  234. final val lconst_1: Int(10)

  235. final val ldc: Int(18)

  236. final val ldc2_w: Int(20)

  237. final val ldc_w: Int(19)

  238. final val ldiv: Int(109)

  239. final val lload: Int(22)

  240. final val lload_0: Int(30)

  241. final val lload_1: Int(31)

  242. final val lload_2: Int(32)

  243. final val lload_3: Int(33)

  244. final val lmul: Int(105)

  245. final val lneg: Int(117)

  246. final val lookupswitch: Int(171)

  247. final val lor: Int(129)

  248. final val lrem: Int(113)

  249. final val lreturn: Int(173)

  250. final val lshl: Int(121)

  251. final val lshr: Int(123)

  252. final val lstore: Int(55)

  253. final val lstore_0: Int(63)

  254. final val lstore_1: Int(64)

  255. final val lstore_2: Int(65)

  256. final val lstore_3: Int(66)

  257. final val lsub: Int(101)

  258. final val lushr: Int(125)

  259. final val lxor: Int(131)

  260. final val monitorenter: Int(194)

  261. final val monitorexit: Int(195)

  262. final val multianewarray: Int(197)

  263. final def ne(arg0: AnyRef): Boolean

    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
  264. final val new_: Int(187)

  265. final val newarray: Int(188)

  266. final val nop: Int(0)

  267. final def notify(): Unit

    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

  268. final def notifyAll(): Unit

    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

  269. final val pop: Int(87)

  270. final val pop2: Int(88)

  271. final val putfield: Int(181)

  272. final val putstatic: Int(179)

  273. final val ret: Int(169)

  274. final val return_: Int(177)

  275. final val saload: Int(53)

  276. final val sastore: Int(86)

  277. final val sipush: Int(17)

  278. final val swap: Int(95)

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

    Definition Classes
    AnyRef
  280. final val tableswitch: Int(170)

  281. def toScalaClassFlags(flags: Int): Long

  282. def toScalaFieldFlags(flags: Int): Long

  283. def toScalaMethodFlags(flags: Int): Long

  284. def toString(): String

    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
  285. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  288. final val wide: Int(196)

  289. final val xxxunusedxxxx: Int(186)

Deprecated Value Members

  1. def toScalaFlags(flags: Int, isClass: Boolean = false, isField: Boolean = false): Long

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use another method in this object

Inherited from AnyRef

Inherited from Any

No Group