KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > classfile > ByteCodes


1 /*
2  * ByteCodes.java
3  *
4  * The contents of this file are subject to the terms of the Common Development
5  * and Distribution License (the License). You may not use this file except in
6  * compliance with the License.
7  *
8  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
9  * or http://www.netbeans.org/cddl.txt.
10  *
11  * When distributing Covered Code, include this CDDL Header Notice in each file
12  * and include the License file at http://www.netbeans.org/cddl.txt.
13  * If applicable, add the following below the CDDL Header, with the fields
14  * enclosed by brackets [] replaced by your own identifying information:
15  * "Portions Copyrighted [year] [name of copyright owner]"
16  *
17  * The Original Software is NetBeans. The Initial Developer of the Original
18  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
19  * Microsystems, Inc. All Rights Reserved.
20  *
21  * Contributor(s): Thomas Ball
22  *
23  * Version: $Revision: 1.2 $
24  */

25
26 package org.netbeans.modules.classfile;
27
28 /**
29  * Constant definitions for the bytecodes defined in the
30  * Java Virtual Machine specification, Chapter 10.
31  *
32  * @author Thomas Ball
33  */

34 public interface ByteCodes {
35     /* JVM Spec, Chapter 10 */
36     int bc_nop = 0;
37     int bc_aconst_null = 1;
38     int bc_iconst_m1 = 2;
39     int bc_iconst_0 = 3;
40     int bc_iconst_1 = 4;
41     int bc_iconst_2 = 5;
42     int bc_iconst_3 = 6;
43     int bc_iconst_4 = 7;
44     int bc_iconst_5 = 8;
45     int bc_lconst_0 = 9;
46     int bc_lconst_1 = 10;
47     int bc_fconst_0 = 11;
48     int bc_fconst_1 = 12;
49     int bc_fconst_2 = 13;
50     int bc_dconst_0 = 14;
51     int bc_dconst_1 = 15;
52     int bc_bipush = 16;
53     int bc_sipush = 17;
54     int bc_ldc = 18;
55     int bc_ldc_w = 19;
56     int bc_ldc2_w = 20;
57     int bc_iload = 21;
58     int bc_lload = 22;
59     int bc_fload = 23;
60     int bc_dload = 24;
61     int bc_aload = 25;
62     int bc_iload_0 = 26;
63     int bc_iload_1 = 27;
64     int bc_iload_2 = 28;
65     int bc_iload_3 = 29;
66     int bc_lload_0 = 30;
67     int bc_lload_1 = 31;
68     int bc_lload_2 = 32;
69     int bc_lload_3 = 33;
70     int bc_fload_0 = 34;
71     int bc_fload_1 = 35;
72     int bc_fload_2 = 36;
73     int bc_fload_3 = 37;
74     int bc_dload_0 = 38;
75     int bc_dload_1 = 39;
76     int bc_dload_2 = 40;
77     int bc_dload_3 = 41;
78     int bc_aload_0 = 42;
79     int bc_aload_1 = 43;
80     int bc_aload_2 = 44;
81     int bc_aload_3 = 45;
82     int bc_iaload = 46;
83     int bc_laload = 47;
84     int bc_faload = 48;
85     int bc_daload = 49;
86     int bc_aaload = 50;
87     int bc_baload = 51;
88     int bc_caload = 52;
89     int bc_saload = 53;
90     int bc_istore = 54;
91     int bc_lstore = 55;
92     int bc_fstore = 56;
93     int bc_dstore = 57;
94     int bc_astore = 58;
95     int bc_istore_0 = 59;
96     int bc_istore_1 = 60;
97     int bc_istore_2 = 61;
98     int bc_istore_3 = 62;
99     int bc_lstore_0 = 63;
100     int bc_lstore_1 = 64;
101     int bc_lstore_2 = 65;
102     int bc_lstore_3 = 66;
103     int bc_fstore_0 = 67;
104     int bc_fstore_1 = 68;
105     int bc_fstore_2 = 69;
106     int bc_fstore_3 = 70;
107     int bc_dstore_0 = 71;
108     int bc_dstore_1 = 72;
109     int bc_dstore_2 = 73;
110     int bc_dstore_3 = 74;
111     int bc_astore_0 = 75;
112     int bc_astore_1 = 76;
113     int bc_astore_2 = 77;
114     int bc_astore_3 = 78;
115     int bc_iastore = 79;
116     int bc_lastore = 80;
117     int bc_fastore = 81;
118     int bc_dastore = 82;
119     int bc_aastore = 83;
120     int bc_bastore = 84;
121     int bc_castore = 85;
122     int bc_sastore = 86;
123     int bc_pop = 87;
124     int bc_pop2 = 88;
125     int bc_dup = 89;
126     int bc_dup_x1 = 90;
127     int bc_dup_x2 = 91;
128     int bc_dup2 = 92;
129     int bc_dup2_x1 = 93;
130     int bc_dup2_x2 = 94;
131     int bc_swap = 95;
132     int bc_iadd = 96;
133     int bc_ladd = 97;
134     int bc_fadd = 98;
135     int bc_dadd = 99;
136     int bc_isub = 100;
137     int bc_lsub = 101;
138     int bc_fsub = 102;
139     int bc_dsub = 103;
140     int bc_imul = 104;
141     int bc_lmul = 105;
142     int bc_fmul = 106;
143     int bc_dmul = 107;
144     int bc_idiv = 108;
145     int bc_ldiv = 109;
146     int bc_fdiv = 110;
147     int bc_ddiv = 111;
148     int bc_irem = 112;
149     int bc_lrem = 113;
150     int bc_frem = 114;
151     int bc_drem = 115;
152     int bc_ineg = 116;
153     int bc_lneg = 117;
154     int bc_fneg = 118;
155     int bc_dneg = 119;
156     int bc_ishl = 120;
157     int bc_lshl = 121;
158     int bc_ishr = 122;
159     int bc_lshr = 123;
160     int bc_iushr = 124;
161     int bc_lushr = 125;
162     int bc_iand = 126;
163     int bc_land = 127;
164     int bc_ior = 128;
165     int bc_lor = 129;
166     int bc_ixor = 130;
167     int bc_lxor = 131;
168     int bc_iinc = 132;
169     int bc_i2l = 133;
170     int bc_i2f = 134;
171     int bc_i2d = 135;
172     int bc_l2i = 136;
173     int bc_l2f = 137;
174     int bc_l2d = 138;
175     int bc_f2i = 139;
176     int bc_f2l = 140;
177     int bc_f2d = 141;
178     int bc_d2i = 142;
179     int bc_d2l = 143;
180     int bc_d2f = 144;
181     int bc_i2b = 145;
182     int bc_i2c = 146;
183     int bc_i2s = 147;
184     int bc_lcmp = 148;
185     int bc_fcmpl = 149;
186     int bc_fcmpg = 150;
187     int bc_dcmpl = 151;
188     int bc_dcmpg = 152;
189     int bc_ifeq = 153;
190     int bc_ifne = 154;
191     int bc_iflt = 155;
192     int bc_ifge = 156;
193     int bc_ifgt = 157;
194     int bc_ifle = 158;
195     int bc_if_icmpeq = 159;
196     int bc_if_icmpne = 160;
197     int bc_if_icmplt = 161;
198     int bc_if_icmpge = 162;
199     int bc_if_icmpgt = 163;
200     int bc_if_icmple = 164;
201     int bc_if_acmpeq = 165;
202     int bc_if_acmpne = 166;
203     int bc_goto = 167;
204     int bc_jsr = 168;
205     int bc_ret = 169;
206     int bc_tableswitch = 170;
207     int bc_lookupswitch = 171;
208     int bc_ireturn = 172;
209     int bc_lreturn = 173;
210     int bc_freturn = 174;
211     int bc_dreturn = 175;
212     int bc_areturn = 176;
213     int bc_return = 177;
214     int bc_getstatic = 178;
215     int bc_putstatic = 179;
216     int bc_getfield = 180;
217     int bc_putfield = 181;
218     int bc_invokevirtual = 182;
219     int bc_invokespecial = 183;
220     int bc_invokestatic = 184;
221     int bc_invokeinterface = 185;
222     int bc_xxxunusedxxx = 186;
223     int bc_new = 187;
224     int bc_newarray = 188;
225     int bc_anewarray = 189;
226     int bc_arraylength = 190;
227     int bc_athrow = 191;
228     int bc_checkcast = 192;
229     int bc_instanceof = 193;
230     int bc_monitorenter = 194;
231     int bc_monitorexit = 195;
232     int bc_wide = 196;
233     int bc_multianewarray = 197;
234     int bc_ifnull = 198;
235     int bc_ifnonnull = 199;
236     int bc_goto_w = 200;
237     int bc_jsr_w = 201;
238 }
239
Popular Tags