PageRenderTime 50ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/org/objectweb/asm/Constants.java

#
Java | 273 lines | 182 code | 10 blank | 81 comment | 0 complexity | 3d82310fcfe1874d46d216878640d389 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /***
  2. * ASM: a very small and fast Java bytecode manipulation framework
  3. * Copyright (C) 2000 INRIA, France Telecom
  4. * Copyright (C) 2002 France Telecom
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. *
  20. * Contact: Eric.Bruneton@rd.francetelecom.com
  21. *
  22. * Author: Eric Bruneton
  23. */
  24. package org.objectweb.asm;
  25. /**
  26. * Defines the JVM opcodes, access flags and array type codes. This interface
  27. * does not define all the JVM opcodes because some opcodes are automatically
  28. * handled. For example, the xLOAD and xSTORE opcodes are automatically replaced
  29. * by xLOAD_n and xSTORE_n opcodes when possible. The xLOAD_n and xSTORE_n
  30. * opcodes are therefore not defined in this interface. Likewise for LDC,
  31. * automatically replaced by LDC_W or LDC2_W when necessary, WIDE, GOTO_W and
  32. * JSR_W.
  33. */
  34. public interface Constants {
  35. // access flags
  36. int ACC_PUBLIC = 1;
  37. int ACC_PRIVATE = 2;
  38. int ACC_PROTECTED = 4;
  39. int ACC_STATIC = 8;
  40. int ACC_FINAL = 16;
  41. int ACC_SYNCHRONIZED = 32;
  42. int ACC_VOLATILE = 64;
  43. int ACC_TRANSIENT = 128;
  44. int ACC_NATIVE = 256;
  45. int ACC_INTERFACE = 512;
  46. int ACC_ABSTRACT = 1024;
  47. int ACC_STRICT = 2048;
  48. int ACC_SUPER = 32;
  49. int ACC_SYNTHETIC = 65536;
  50. int ACC_DEPRECATED = 131072;
  51. // types for NEWARRAY
  52. int T_BOOLEAN = 4;
  53. int T_CHAR = 5;
  54. int T_FLOAT = 6;
  55. int T_DOUBLE = 7;
  56. int T_BYTE = 8;
  57. int T_SHORT = 9;
  58. int T_INT = 10;
  59. int T_LONG = 11;
  60. // opcodes // visit method (- = idem)
  61. int NOP = 0; // visitInsn
  62. int ACONST_NULL = 1; // -
  63. int ICONST_M1 = 2; // -
  64. int ICONST_0 = 3; // -
  65. int ICONST_1 = 4; // -
  66. int ICONST_2 = 5; // -
  67. int ICONST_3 = 6; // -
  68. int ICONST_4 = 7; // -
  69. int ICONST_5 = 8; // -
  70. int LCONST_0 = 9; // -
  71. int LCONST_1 = 10; // -
  72. int FCONST_0 = 11; // -
  73. int FCONST_1 = 12; // -
  74. int FCONST_2 = 13; // -
  75. int DCONST_0 = 14; // -
  76. int DCONST_1 = 15; // -
  77. int BIPUSH = 16; // visitIntInsn
  78. int SIPUSH = 17; // -
  79. int LDC = 18; // visitLdcInsn
  80. //int LDC_W = 19; // -
  81. //int LDC2_W = 20; // -
  82. int ILOAD = 21; // visitVarInsn
  83. int LLOAD = 22; // -
  84. int FLOAD = 23; // -
  85. int DLOAD = 24; // -
  86. int ALOAD = 25; // -
  87. //int ILOAD_0 = 26; // -
  88. //int ILOAD_1 = 27; // -
  89. //int ILOAD_2 = 28; // -
  90. //int ILOAD_3 = 29; // -
  91. //int LLOAD_0 = 30; // -
  92. //int LLOAD_1 = 31; // -
  93. //int LLOAD_2 = 32; // -
  94. //int LLOAD_3 = 33; // -
  95. //int FLOAD_0 = 34; // -
  96. //int FLOAD_1 = 35; // -
  97. //int FLOAD_2 = 36; // -
  98. //int FLOAD_3 = 37; // -
  99. //int DLOAD_0 = 38; // -
  100. //int DLOAD_1 = 39; // -
  101. //int DLOAD_2 = 40; // -
  102. //int DLOAD_3 = 41; // -
  103. //int ALOAD_0 = 42; // -
  104. //int ALOAD_1 = 43; // -
  105. //int ALOAD_2 = 44; // -
  106. //int ALOAD_3 = 45; // -
  107. int IALOAD = 46; // visitInsn
  108. int LALOAD = 47; // -
  109. int FALOAD = 48; // -
  110. int DALOAD = 49; // -
  111. int AALOAD = 50; // -
  112. int BALOAD = 51; // -
  113. int CALOAD = 52; // -
  114. int SALOAD = 53; // -
  115. int ISTORE = 54; // visitVarInsn
  116. int LSTORE = 55; // -
  117. int FSTORE = 56; // -
  118. int DSTORE = 57; // -
  119. int ASTORE = 58; // -
  120. //int ISTORE_0 = 59; // -
  121. //int ISTORE_1 = 60; // -
  122. //int ISTORE_2 = 61; // -
  123. //int ISTORE_3 = 62; // -
  124. //int LSTORE_0 = 63; // -
  125. //int LSTORE_1 = 64; // -
  126. //int LSTORE_2 = 65; // -
  127. //int LSTORE_3 = 66; // -
  128. //int FSTORE_0 = 67; // -
  129. //int FSTORE_1 = 68; // -
  130. //int FSTORE_2 = 69; // -
  131. //int FSTORE_3 = 70; // -
  132. //int DSTORE_0 = 71; // -
  133. //int DSTORE_1 = 72; // -
  134. //int DSTORE_2 = 73; // -
  135. //int DSTORE_3 = 74; // -
  136. //int ASTORE_0 = 75; // -
  137. //int ASTORE_1 = 76; // -
  138. //int ASTORE_2 = 77; // -
  139. //int ASTORE_3 = 78; // -
  140. int IASTORE = 79; // visitInsn
  141. int LASTORE = 80; // -
  142. int FASTORE = 81; // -
  143. int DASTORE = 82; // -
  144. int AASTORE = 83; // -
  145. int BASTORE = 84; // -
  146. int CASTORE = 85; // -
  147. int SASTORE = 86; // -
  148. int POP = 87; // -
  149. int POP2 = 88; // -
  150. int DUP = 89; // -
  151. int DUP_X1 = 90; // -
  152. int DUP_X2 = 91; // -
  153. int DUP2 = 92; // -
  154. int DUP2_X1 = 93; // -
  155. int DUP2_X2 = 94; // -
  156. int SWAP = 95; // -
  157. int IADD = 96; // -
  158. int LADD = 97; // -
  159. int FADD = 98; // -
  160. int DADD = 99; // -
  161. int ISUB = 100; // -
  162. int LSUB = 101; // -
  163. int FSUB = 102; // -
  164. int DSUB = 103; // -
  165. int IMUL = 104; // -
  166. int LMUL = 105; // -
  167. int FMUL = 106; // -
  168. int DMUL = 107; // -
  169. int IDIV = 108; // -
  170. int LDIV = 109; // -
  171. int FDIV = 110; // -
  172. int DDIV = 111; // -
  173. int IREM = 112; // -
  174. int LREM = 113; // -
  175. int FREM = 114; // -
  176. int DREM = 115; // -
  177. int INEG = 116; // -
  178. int LNEG = 117; // -
  179. int FNEG = 118; // -
  180. int DNEG = 119; // -
  181. int ISHL = 120; // -
  182. int LSHL = 121; // -
  183. int ISHR = 122; // -
  184. int LSHR = 123; // -
  185. int IUSHR = 124; // -
  186. int LUSHR = 125; // -
  187. int IAND = 126; // -
  188. int LAND = 127; // -
  189. int IOR = 128; // -
  190. int LOR = 129; // -
  191. int IXOR = 130; // -
  192. int LXOR = 131; // -
  193. int IINC = 132; // visitIincInsn
  194. int I2L = 133; // visitInsn
  195. int I2F = 134; // -
  196. int I2D = 135; // -
  197. int L2I = 136; // -
  198. int L2F = 137; // -
  199. int L2D = 138; // -
  200. int F2I = 139; // -
  201. int F2L = 140; // -
  202. int F2D = 141; // -
  203. int D2I = 142; // -
  204. int D2L = 143; // -
  205. int D2F = 144; // -
  206. int I2B = 145; // -
  207. int I2C = 146; // -
  208. int I2S = 147; // -
  209. int LCMP = 148; // -
  210. int FCMPL = 149; // -
  211. int FCMPG = 150; // -
  212. int DCMPL = 151; // -
  213. int DCMPG = 152; // -
  214. int IFEQ = 153; // visitJumpInsn
  215. int IFNE = 154; // -
  216. int IFLT = 155; // -
  217. int IFGE = 156; // -
  218. int IFGT = 157; // -
  219. int IFLE = 158; // -
  220. int IF_ICMPEQ = 159; // -
  221. int IF_ICMPNE = 160; // -
  222. int IF_ICMPLT = 161; // -
  223. int IF_ICMPGE = 162; // -
  224. int IF_ICMPGT = 163; // -
  225. int IF_ICMPLE = 164; // -
  226. int IF_ACMPEQ = 165; // -
  227. int IF_ACMPNE = 166; // -
  228. int GOTO = 167; // -
  229. int JSR = 168; // -
  230. int RET = 169; // visitVarInsn
  231. int TABLESWITCH = 170; // visiTableSwitchInsn
  232. int LOOKUPSWITCH = 171; // visitLookupSwitch
  233. int IRETURN = 172; // visitInsn
  234. int LRETURN = 173; // -
  235. int FRETURN = 174; // -
  236. int DRETURN = 175; // -
  237. int ARETURN = 176; // -
  238. int RETURN = 177; // -
  239. int GETSTATIC = 178; // visitFieldInsn
  240. int PUTSTATIC = 179; // -
  241. int GETFIELD = 180; // -
  242. int PUTFIELD = 181; // -
  243. int INVOKEVIRTUAL = 182; // visitMethodInsn
  244. int INVOKESPECIAL = 183; // -
  245. int INVOKESTATIC = 184; // -
  246. int INVOKEINTERFACE = 185; // -
  247. //int UNUSED = 186; // NOT VISITED
  248. int NEW = 187; // visitTypeInsn
  249. int NEWARRAY = 188; // visitIntInsn
  250. int ANEWARRAY = 189; // visitTypeInsn
  251. int ARRAYLENGTH = 190; // visitInsn
  252. int ATHROW = 191; // -
  253. int CHECKCAST = 192; // visitTypeInsn
  254. int INSTANCEOF = 193; // -
  255. int MONITORENTER = 194; // visitInsn
  256. int MONITOREXIT = 195; // -
  257. //int WIDE = 196; // NOT VISITED
  258. int MULTIANEWARRAY = 197; // visitMultiANewArrayInsn
  259. int IFNULL = 198; // visitJumpInsn
  260. int IFNONNULL = 199; // -
  261. //int GOTO_W = 200; // -
  262. //int JSR_W = 201; // -
  263. }