KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > bsh > org > objectweb > asm > Constants


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
25 package bsh.org.objectweb.asm;
26
27 /**
28  * Defines the JVM opcodes, access flags and array type codes. This interface
29  * does not define all the JVM opcodes because some opcodes are automatically
30  * handled. For example, the xLOAD and xSTORE opcodes are automatically replaced
31  * by xLOAD_n and xSTORE_n opcodes when possible. The xLOAD_n and xSTORE_n
32  * opcodes are therefore not defined in this interface. Likewise for LDC,
33  * automatically replaced by LDC_W or LDC2_W when necessary, WIDE, GOTO_W and
34  * JSR_W.
35  */

36
37 public interface Constants {
38
39   // access flags
40

41   int ACC_PUBLIC = 1;
42   int ACC_PRIVATE = 2;
43   int ACC_PROTECTED = 4;
44   int ACC_STATIC = 8;
45   int ACC_FINAL = 16;
46   int ACC_SYNCHRONIZED = 32;
47   int ACC_VOLATILE = 64;
48   int ACC_TRANSIENT = 128;
49   int ACC_NATIVE = 256;
50   int ACC_INTERFACE = 512;
51   int ACC_ABSTRACT = 1024;
52   int ACC_STRICT = 2048;
53   int ACC_SUPER = 32;
54
55   int ACC_SYNTHETIC = 65536;
56   int ACC_DEPRECATED = 131072;
57
58   // types for NEWARRAY
59

60   int T_BOOLEAN = 4;
61   int T_CHAR = 5;
62   int T_FLOAT = 6;
63   int T_DOUBLE = 7;
64   int T_BYTE = 8;
65   int T_SHORT = 9;
66   int T_INT = 10;
67   int T_LONG = 11;
68
69   // opcodes // visit method (- = idem)
70

71   int NOP = 0; // visitInsn
72
int ACONST_NULL = 1; // -
73
int ICONST_M1 = 2; // -
74
int ICONST_0 = 3; // -
75
int ICONST_1 = 4; // -
76
int ICONST_2 = 5; // -
77
int ICONST_3 = 6; // -
78
int ICONST_4 = 7; // -
79
int ICONST_5 = 8; // -
80
int LCONST_0 = 9; // -
81
int LCONST_1 = 10; // -
82
int FCONST_0 = 11; // -
83
int FCONST_1 = 12; // -
84
int FCONST_2 = 13; // -
85
int DCONST_0 = 14; // -
86
int DCONST_1 = 15; // -
87
int BIPUSH = 16; // visitIntInsn
88
int SIPUSH = 17; // -
89
int LDC = 18; // visitLdcInsn
90
//int LDC_W = 19; // -
91
//int LDC2_W = 20; // -
92
int ILOAD = 21; // visitVarInsn
93
int LLOAD = 22; // -
94
int FLOAD = 23; // -
95
int DLOAD = 24; // -
96
int ALOAD = 25; // -
97
//int ILOAD_0 = 26; // -
98
//int ILOAD_1 = 27; // -
99
//int ILOAD_2 = 28; // -
100
//int ILOAD_3 = 29; // -
101
//int LLOAD_0 = 30; // -
102
//int LLOAD_1 = 31; // -
103
//int LLOAD_2 = 32; // -
104
//int LLOAD_3 = 33; // -
105
//int FLOAD_0 = 34; // -
106
//int FLOAD_1 = 35; // -
107
//int FLOAD_2 = 36; // -
108
//int FLOAD_3 = 37; // -
109
//int DLOAD_0 = 38; // -
110
//int DLOAD_1 = 39; // -
111
//int DLOAD_2 = 40; // -
112
//int DLOAD_3 = 41; // -
113
//int ALOAD_0 = 42; // -
114
//int ALOAD_1 = 43; // -
115
//int ALOAD_2 = 44; // -
116
//int ALOAD_3 = 45; // -
117
int IALOAD = 46; // visitInsn
118
int LALOAD = 47; // -
119
int FALOAD = 48; // -
120
int DALOAD = 49; // -
121
int AALOAD = 50; // -
122
int BALOAD = 51; // -
123
int CALOAD = 52; // -
124
int SALOAD = 53; // -
125
int ISTORE = 54; // visitVarInsn
126
int LSTORE = 55; // -
127
int FSTORE = 56; // -
128
int DSTORE = 57; // -
129
int ASTORE = 58; // -
130
//int ISTORE_0 = 59; // -
131
//int ISTORE_1 = 60; // -
132
//int ISTORE_2 = 61; // -
133
//int ISTORE_3 = 62; // -
134
//int LSTORE_0 = 63; // -
135
//int LSTORE_1 = 64; // -
136
//int LSTORE_2 = 65; // -
137
//int LSTORE_3 = 66; // -
138
//int FSTORE_0 = 67; // -
139
//int FSTORE_1 = 68; // -
140
//int FSTORE_2 = 69; // -
141
//int FSTORE_3 = 70; // -
142
//int DSTORE_0 = 71; // -
143
//int DSTORE_1 = 72; // -
144
//int DSTORE_2 = 73; // -
145
//int DSTORE_3 = 74; // -
146
//int ASTORE_0 = 75; // -
147
//int ASTORE_1 = 76; // -
148
//int ASTORE_2 = 77; // -
149
//int ASTORE_3 = 78; // -
150
int IASTORE = 79; // visitInsn
151
int LASTORE = 80; // -
152
int FASTORE = 81; // -
153
int DASTORE = 82; // -
154
int AASTORE = 83; // -
155
int BASTORE = 84; // -
156
int CASTORE = 85; // -
157
int SASTORE = 86; // -
158
int POP = 87; // -
159
int POP2 = 88; // -
160
int DUP = 89; // -
161
int DUP_X1 = 90; // -
162
int DUP_X2 = 91; // -
163
int DUP2 = 92; // -
164
int DUP2_X1 = 93; // -
165
int DUP2_X2 = 94; // -
166
int SWAP = 95; // -
167
int IADD = 96; // -
168
int LADD = 97; // -
169
int FADD = 98; // -
170
int DADD = 99; // -
171
int ISUB = 100; // -
172
int LSUB = 101; // -
173
int FSUB = 102; // -
174
int DSUB = 103; // -
175
int IMUL = 104; // -
176
int LMUL = 105; // -
177
int FMUL = 106; // -
178
int DMUL = 107; // -
179
int IDIV = 108; // -
180
int LDIV = 109; // -
181
int FDIV = 110; // -
182
int DDIV = 111; // -
183
int IREM = 112; // -
184
int LREM = 113; // -
185
int FREM = 114; // -
186
int DREM = 115; // -
187
int INEG = 116; // -
188
int LNEG = 117; // -
189
int FNEG = 118; // -
190
int DNEG = 119; // -
191
int ISHL = 120; // -
192
int LSHL = 121; // -
193
int ISHR = 122; // -
194
int LSHR = 123; // -
195
int IUSHR = 124; // -
196
int LUSHR = 125; // -
197
int IAND = 126; // -
198
int LAND = 127; // -
199
int IOR = 128; // -
200
int LOR = 129; // -
201
int IXOR = 130; // -
202
int LXOR = 131; // -
203
int IINC = 132; // visitIincInsn
204
int I2L = 133; // visitInsn
205
int I2F = 134; // -
206
int I2D = 135; // -
207
int L2I = 136; // -
208
int L2F = 137; // -
209
int L2D = 138; // -
210
int F2I = 139; // -
211
int F2L = 140; // -
212
int F2D = 141; // -
213
int D2I = 142; // -
214
int D2L = 143; // -
215
int D2F = 144; // -
216
int I2B = 145; // -
217
int I2C = 146; // -
218
int I2S = 147; // -
219
int LCMP = 148; // -
220
int FCMPL = 149; // -
221
int FCMPG = 150; // -
222
int DCMPL = 151; // -
223
int DCMPG = 152; // -
224
int IFEQ = 153; // visitJumpInsn
225
int IFNE = 154; // -
226
int IFLT = 155; // -
227
int IFGE = 156; // -
228
int IFGT = 157; // -
229
int IFLE = 158; // -
230
int IF_ICMPEQ = 159; // -
231
int IF_ICMPNE = 160; // -
232
int IF_ICMPLT = 161; // -
233
int IF_ICMPGE = 162; // -
234
int IF_ICMPGT = 163; // -
235
int IF_ICMPLE = 164; // -
236
int IF_ACMPEQ = 165; // -
237
int IF_ACMPNE = 166; // -
238
int GOTO = 167; // -
239
int JSR = 168; // -
240
int RET = 169; // visitVarInsn
241
int TABLESWITCH = 170; // visiTableSwitchInsn
242
int LOOKUPSWITCH = 171; // visitLookupSwitch
243
int IRETURN = 172; // visitInsn
244
int LRETURN = 173; // -
245
int FRETURN = 174; // -
246
int DRETURN = 175; // -
247
int ARETURN = 176; // -
248
int RETURN = 177; // -
249
int GETSTATIC = 178; // visitFieldInsn
250
int PUTSTATIC = 179; // -
251
int GETFIELD = 180; // -
252
int PUTFIELD = 181; // -
253
int INVOKEVIRTUAL = 182; // visitMethodInsn
254
int INVOKESPECIAL = 183; // -
255
int INVOKESTATIC = 184; // -
256
int INVOKEINTERFACE = 185; // -
257
//int UNUSED = 186; // NOT VISITED
258
int NEW = 187; // visitTypeInsn
259
int NEWARRAY = 188; // visitIntInsn
260
int ANEWARRAY = 189; // visitTypeInsn
261
int ARRAYLENGTH = 190; // visitInsn
262
int ATHROW = 191; // -
263
int CHECKCAST = 192; // visitTypeInsn
264
int INSTANCEOF = 193; // -
265
int MONITORENTER = 194; // visitInsn
266
int MONITOREXIT = 195; // -
267
//int WIDE = 196; // NOT VISITED
268
int MULTIANEWARRAY = 197; // visitMultiANewArrayInsn
269
int IFNULL = 198; // visitJumpInsn
270
int IFNONNULL = 199; // -
271
//int GOTO_W = 200; // -
272
//int JSR_W = 201; // -
273
}
274
Popular Tags