KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > bytecode > Opcodes


1 /*
2     This library is free software; you can redistribute it and/or
3     modify it under the terms of the GNU General Public
4     License as published by the Free Software Foundation; either
5     version 2 of the license, or (at your option) any later version.
6 */

7
8 package org.gjt.jclasslib.bytecode;
9
10 /**
11     Defines all opcodes and their verbose representation as well as the type codes
12     for the <tt>newarray</tt> instruction.
13  
14     @author <a HREF="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
15     @version $Revision: 1.2 $ $Date: 2002/02/27 16:47:43 $
16 */

17 public interface Opcodes {
18     
19     public static final int OPCODE_NOP = 0x00;
20     public static final int OPCODE_ACONST_NULL = 0x01;
21     public static final int OPCODE_ICONST_M1 = 0x02;
22     public static final int OPCODE_ICONST_0 = 0x03;
23     public static final int OPCODE_ICONST_1 = 0x04;
24     public static final int OPCODE_ICONST_2 = 0x05;
25     public static final int OPCODE_ICONST_3 = 0x06;
26     public static final int OPCODE_ICONST_4 = 0x07;
27     public static final int OPCODE_ICONST_5 = 0x08;
28     public static final int OPCODE_LCONST_0 = 0x09;
29     public static final int OPCODE_LCONST_1 = 0x0a;
30     public static final int OPCODE_FCONST_0 = 0x0b;
31     public static final int OPCODE_FCONST_1 = 0x0c;
32     public static final int OPCODE_FCONST_2 = 0x0d;
33     public static final int OPCODE_DCONST_0 = 0x0e;
34     public static final int OPCODE_DCONST_1 = 0x0f;
35     public static final int OPCODE_BIPUSH = 0x10;
36     public static final int OPCODE_SIPUSH = 0x11;
37     public static final int OPCODE_LDC = 0x12;
38     public static final int OPCODE_LDC_W = 0x13;
39     public static final int OPCODE_LDC2_W = 0x14;
40     public static final int OPCODE_ILOAD = 0x15;
41     public static final int OPCODE_LLOAD = 0x16;
42     public static final int OPCODE_FLOAD = 0x17;
43     public static final int OPCODE_DLOAD = 0x18;
44     public static final int OPCODE_ALOAD = 0x19;
45     public static final int OPCODE_ILOAD_0 = 0x1a;
46     public static final int OPCODE_ILOAD_1 = 0x1b;
47     public static final int OPCODE_ILOAD_2 = 0x1c;
48     public static final int OPCODE_ILOAD_3 = 0x1d;
49     public static final int OPCODE_LLOAD_0 = 0x1e;
50     public static final int OPCODE_LLOAD_1 = 0x1f;
51     public static final int OPCODE_LLOAD_2 = 0x20;
52     public static final int OPCODE_LLOAD_3 = 0x21;
53     public static final int OPCODE_FLOAD_0 = 0x22;
54     public static final int OPCODE_FLOAD_1 = 0x23;
55     public static final int OPCODE_FLOAD_2 = 0x24;
56     public static final int OPCODE_FLOAD_3 = 0x25;
57     public static final int OPCODE_DLOAD_0 = 0x26;
58     public static final int OPCODE_DLOAD_1 = 0x27;
59     public static final int OPCODE_DLOAD_2 = 0x28;
60     public static final int OPCODE_DLOAD_3 = 0x29;
61     public static final int OPCODE_ALOAD_0 = 0x2a;
62     public static final int OPCODE_ALOAD_1 = 0x2b;
63     public static final int OPCODE_ALOAD_2 = 0x2c;
64     public static final int OPCODE_ALOAD_3 = 0x2d;
65     public static final int OPCODE_IALOAD = 0x2e;
66     public static final int OPCODE_LALOAD = 0x2f;
67     public static final int OPCODE_FALOAD = 0x30;
68     public static final int OPCODE_DALOAD = 0x31;
69     public static final int OPCODE_AALOAD = 0x32;
70     public static final int OPCODE_BALOAD = 0x33;
71     public static final int OPCODE_CALOAD = 0x34;
72     public static final int OPCODE_SALOAD = 0x35;
73     public static final int OPCODE_ISTORE = 0x36;
74     public static final int OPCODE_LSTORE = 0x37;
75     public static final int OPCODE_FSTORE = 0x38;
76     public static final int OPCODE_DSTORE = 0x39;
77     public static final int OPCODE_ASTORE = 0x3a;
78     public static final int OPCODE_ISTORE_0 = 0x3b;
79     public static final int OPCODE_ISTORE_1 = 0x3c;
80     public static final int OPCODE_ISTORE_2 = 0x3d;
81     public static final int OPCODE_ISTORE_3 = 0x3e;
82     public static final int OPCODE_LSTORE_0 = 0x3f;
83     public static final int OPCODE_LSTORE_1 = 0x40;
84     public static final int OPCODE_LSTORE_2 = 0x41;
85     public static final int OPCODE_LSTORE_3 = 0x42;
86     public static final int OPCODE_FSTORE_0 = 0x43;
87     public static final int OPCODE_FSTORE_1 = 0x44;
88     public static final int OPCODE_FSTORE_2 = 0x45;
89     public static final int OPCODE_FSTORE_3 = 0x46;
90     public static final int OPCODE_DSTORE_0 = 0x47;
91     public static final int OPCODE_DSTORE_1 = 0x48;
92     public static final int OPCODE_DSTORE_2 = 0x49;
93     public static final int OPCODE_DSTORE_3 = 0x4a;
94     public static final int OPCODE_ASTORE_0 = 0x4b;
95     public static final int OPCODE_ASTORE_1 = 0x4c;
96     public static final int OPCODE_ASTORE_2 = 0x4d;
97     public static final int OPCODE_ASTORE_3 = 0x4e;
98     public static final int OPCODE_IASTORE = 0x4f;
99     public static final int OPCODE_LASTORE = 0x50;
100     public static final int OPCODE_FASTORE = 0x51;
101     public static final int OPCODE_DASTORE = 0x52;
102     public static final int OPCODE_AASTORE = 0x53;
103     public static final int OPCODE_BASTORE = 0x54;
104     public static final int OPCODE_CASTORE = 0x55;
105     public static final int OPCODE_SASTORE = 0x56;
106     public static final int OPCODE_POP = 0x57;
107     public static final int OPCODE_POP2 = 0x58;
108     public static final int OPCODE_DUP = 0x59;
109     public static final int OPCODE_DUP_X1 = 0x5a;
110     public static final int OPCODE_DUP_X2 = 0x5b;
111     public static final int OPCODE_DUP2 = 0x5c;
112     public static final int OPCODE_DUP2_X1 = 0x5d;
113     public static final int OPCODE_DUP2_X2 = 0x5e;
114     public static final int OPCODE_SWAP = 0x5f;
115     public static final int OPCODE_IADD = 0x60;
116     public static final int OPCODE_LADD = 0x61;
117     public static final int OPCODE_FADD = 0x62;
118     public static final int OPCODE_DADD = 0x63;
119     public static final int OPCODE_ISUB = 0x64;
120     public static final int OPCODE_LSUB = 0x65;
121     public static final int OPCODE_FSUB = 0x66;
122     public static final int OPCODE_DSUB = 0x67;
123     public static final int OPCODE_IMUL = 0x68;
124     public static final int OPCODE_LMUL = 0x69;
125     public static final int OPCODE_FMUL = 0x6a;
126     public static final int OPCODE_DMUL = 0x6b;
127     public static final int OPCODE_IDIV = 0x6c;
128     public static final int OPCODE_LDIV = 0x6d;
129     public static final int OPCODE_FDIV = 0x6e;
130     public static final int OPCODE_DDIV = 0x6f;
131     public static final int OPCODE_IREM = 0x70;
132     public static final int OPCODE_LREM = 0x71;
133     public static final int OPCODE_FREM = 0x72;
134     public static final int OPCODE_DREM = 0x73;
135     public static final int OPCODE_INEG = 0x74;
136     public static final int OPCODE_LNEG = 0x75;
137     public static final int OPCODE_FNEG = 0x76;
138     public static final int OPCODE_DNEG = 0x77;
139     public static final int OPCODE_ISHL = 0x78;
140     public static final int OPCODE_LSHL = 0x79;
141     public static final int OPCODE_ISHR = 0x7a;
142     public static final int OPCODE_LSHR = 0x7b;
143     public static final int OPCODE_IUSHR = 0x7c;
144     public static final int OPCODE_LUSHR = 0x7d;
145     public static final int OPCODE_IAND = 0x7e;
146     public static final int OPCODE_LAND = 0x7f;
147     public static final int OPCODE_IOR = 0x80;
148     public static final int OPCODE_LOR = 0x81;
149     public static final int OPCODE_IXOR = 0x82;
150     public static final int OPCODE_LXOR = 0x83;
151     public static final int OPCODE_IINC = 0x84;
152     public static final int OPCODE_I2L = 0x85;
153     public static final int OPCODE_I2F = 0x86;
154     public static final int OPCODE_I2D = 0x87;
155     public static final int OPCODE_L2I = 0x88;
156     public static final int OPCODE_L2F = 0x89;
157     public static final int OPCODE_L2D = 0x8a;
158     public static final int OPCODE_F2I = 0x8b;
159     public static final int OPCODE_F2L = 0x8c;
160     public static final int OPCODE_F2D = 0x8d;
161     public static final int OPCODE_D2I = 0x8e;
162     public static final int OPCODE_D2L = 0x8f;
163     public static final int OPCODE_D2F = 0x90;
164     public static final int OPCODE_I2B = 0x91;
165     public static final int OPCODE_I2C = 0x92;
166     public static final int OPCODE_I2S = 0x93;
167     public static final int OPCODE_LCMP = 0x94;
168     public static final int OPCODE_FCMPL = 0x95;
169     public static final int OPCODE_FCMPG = 0x96;
170     public static final int OPCODE_DCMPL = 0x97;
171     public static final int OPCODE_DCMPG = 0x98;
172     public static final int OPCODE_IFEQ = 0x99;
173     public static final int OPCODE_IFNE = 0x9a;
174     public static final int OPCODE_IFLT = 0x9b;
175     public static final int OPCODE_IFGE = 0x9c;
176     public static final int OPCODE_IFGT = 0x9d;
177     public static final int OPCODE_IFLE = 0x9e;
178     public static final int OPCODE_IF_ICMPEQ = 0x9f;
179     public static final int OPCODE_IF_ICMPNE = 0xa0;
180     public static final int OPCODE_IF_ICMPLT = 0xa1;
181     public static final int OPCODE_IF_ICMPGE = 0xa2;
182     public static final int OPCODE_IF_ICMPGT = 0xa3;
183     public static final int OPCODE_IF_ICMPLE = 0xa4;
184     public static final int OPCODE_IF_ACMPEQ = 0xa5;
185     public static final int OPCODE_IF_ACMPNE = 0xa6;
186     public static final int OPCODE_GOTO = 0xa7;
187     public static final int OPCODE_JSR = 0xa8;
188     public static final int OPCODE_RET = 0xa9;
189     public static final int OPCODE_TABLESWITCH = 0xaa;
190     public static final int OPCODE_LOOKUPSWITCH = 0xab;
191     public static final int OPCODE_IRETURN = 0xac;
192     public static final int OPCODE_LRETURN = 0xad;
193     public static final int OPCODE_FRETURN = 0xae;
194     public static final int OPCODE_DRETURN = 0xaf;
195     public static final int OPCODE_ARETURN = 0xb0;
196     public static final int OPCODE_RETURN = 0xb1;
197     public static final int OPCODE_GETSTATIC = 0xb2;
198     public static final int OPCODE_PUTSTATIC = 0xb3;
199     public static final int OPCODE_GETFIELD = 0xb4;
200     public static final int OPCODE_PUTFIELD = 0xb5;
201     public static final int OPCODE_INVOKEVIRTUAL = 0xb6;
202     public static final int OPCODE_INVOKESPECIAL = 0xb7;
203     public static final int OPCODE_INVOKESTATIC = 0xb8;
204     public static final int OPCODE_INVOKEINTERFACE = 0xb9;
205     public static final int OPCODE_XXXUNUSEDXXX = 0xba;
206     public static final int OPCODE_NEW = 0xbb;
207     public static final int OPCODE_NEWARRAY = 0xbc;
208     public static final int OPCODE_ANEWARRAY = 0xbd;
209     public static final int OPCODE_ARRAYLENGTH = 0xbe;
210     public static final int OPCODE_ATHROW = 0xbf;
211     public static final int OPCODE_CHECKCAST = 0xc0;
212     public static final int OPCODE_INSTANCEOF = 0xc1;
213     public static final int OPCODE_MONITORENTER = 0xc2;
214     public static final int OPCODE_MONITOREXIT = 0xc3;
215     public static final int OPCODE_WIDE = 0xc4;
216     public static final int OPCODE_MULTIANEWARRAY = 0xc5;
217     public static final int OPCODE_IFNULL = 0xc6;
218     public static final int OPCODE_IFNONNULL = 0xc7;
219     public static final int OPCODE_GOTO_W = 0xc8;
220     public static final int OPCODE_JSR_W = 0xc9;
221     public static final int OPCODE_BREAKPOINT = 0xca;
222     public static final int OPCODE_IMPDEP1 = 0xfe;
223     public static final int OPCODE_IMPDEP2 = 0xff;
224
225     
226     public static final int NEWARRAY_T_BOOLEAN = 4;
227     public static final int NEWARRAY_T_CHAR = 5;
228     public static final int NEWARRAY_T_FLOAT = 6;
229     public static final int NEWARRAY_T_DOUBLE = 7;
230     public static final int NEWARRAY_T_BYTE = 8;
231     public static final int NEWARRAY_T_SHORT = 9;
232     public static final int NEWARRAY_T_INT = 10;
233     public static final int NEWARRAY_T_LONG = 11;
234     
235 }
236
Popular Tags