KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdo > api > persistence > enhancer > classfile > VMConstants


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24
25 package com.sun.jdo.api.persistence.enhancer.classfile;
26
27 /**
28  * VMConstants is a collection of the constants defined in the
29  * virtual machine spec.
30  * Also included are several assorted constants of our own which
31  * seem logical to define here.
32  */

33
34 public interface VMConstants {
35   /* Access types */
36   static final int ACCPublic = 0x0001;
37   static final int ACCPrivate = 0x0002;
38   static final int ACCProtected = 0x0004;
39   static final int ACCStatic = 0x0008;
40   static final int ACCFinal = 0x0010;
41   static final int ACCSuper = 0x0020; /* For Class file */
42   static final int ACCSynchronized = 0x0020; /* For methods */
43   static final int ACCVolatile = 0x0040;
44   static final int ACCTransient = 0x0080;
45   static final int ACCNative = 0x0100;
46   static final int ACCInterface = 0x0200;
47   static final int ACCAbstract = 0x0400;
48
49
50   /* Primitive Types */
51   /* These correspond to the values used by newarray */
52   static final int T_BOOLEAN = 4;
53   static final int T_CHAR = 5;
54   static final int T_FLOAT = 6;
55   static final int T_DOUBLE = 7;
56   static final int T_BYTE = 8;
57   static final int T_SHORT = 9;
58   static final int T_INT = 10;
59   static final int T_LONG = 11;
60
61   /* Class types - Not really part of the VM spec */
62   static final int TC_OBJECT = 12;
63   static final int TC_INTERFACE = 13;
64   static final int TC_STRING = 14;
65
66   /* Special pseudo types - Not really part of the VM spec */
67   static final int T_UNKNOWN = 15;
68   static final int T_WORD = 16;
69   static final int T_TWOWORD = 17;
70
71   /* Constant pool types */
72   static final int CONSTANTUtf8 = 1;
73   static final int CONSTANTUnicode = 2; /* Def.in Beta doc - not in 1.0.2 */
74   static final int CONSTANTInteger = 3;
75   static final int CONSTANTFloat = 4;
76   static final int CONSTANTLong = 5;
77   static final int CONSTANTDouble = 6;
78   static final int CONSTANTClass = 7;
79   static final int CONSTANTString = 8;
80   static final int CONSTANTFieldRef = 9;
81   static final int CONSTANTMethodRef = 10;
82   static final int CONSTANTInterfaceMethodRef = 11;
83   static final int CONSTANTNameAndType = 12;
84
85
86
87   /* Java VM opcodes */
88   final static int opc_nop = 0;
89   final static int opc_aconst_null = 1;
90   final static int opc_iconst_m1 = 2;
91   final static int opc_iconst_0 = 3;
92   final static int opc_iconst_1 = 4;
93   final static int opc_iconst_2 = 5;
94   final static int opc_iconst_3 = 6;
95   final static int opc_iconst_4 = 7;
96   final static int opc_iconst_5 = 8;
97   final static int opc_lconst_0 = 9;
98   final static int opc_lconst_1 = 10;
99   final static int opc_fconst_0 = 11;
100   final static int opc_fconst_1 = 12;
101   final static int opc_fconst_2 = 13;
102   final static int opc_dconst_0 = 14;
103   final static int opc_dconst_1 = 15;
104   final static int opc_bipush = 16;
105   final static int opc_sipush = 17;
106   final static int opc_ldc = 18;
107   final static int opc_ldc_w = 19;
108   final static int opc_ldc2_w = 20;
109   final static int opc_iload = 21;
110   final static int opc_lload = 22;
111   final static int opc_fload = 23;
112   final static int opc_dload = 24;
113   final static int opc_aload = 25;
114   final static int opc_iload_0 = 26;
115   final static int opc_iload_1 = 27;
116   final static int opc_iload_2 = 28;
117   final static int opc_iload_3 = 29;
118   final static int opc_lload_0 = 30;
119   final static int opc_lload_1 = 31;
120   final static int opc_lload_2 = 32;
121   final static int opc_lload_3 = 33;
122   final static int opc_fload_0 = 34;
123   final static int opc_fload_1 = 35;
124   final static int opc_fload_2 = 36;
125   final static int opc_fload_3 = 37;
126   final static int opc_dload_0 = 38;
127   final static int opc_dload_1 = 39;
128   final static int opc_dload_2 = 40;
129   final static int opc_dload_3 = 41;
130   final static int opc_aload_0 = 42;
131   final static int opc_aload_1 = 43;
132   final static int opc_aload_2 = 44;
133   final static int opc_aload_3 = 45;
134   final static int opc_iaload = 46;
135   final static int opc_laload = 47;
136   final static int opc_faload = 48;
137   final static int opc_daload = 49;
138   final static int opc_aaload = 50;
139   final static int opc_baload = 51;
140   final static int opc_caload = 52;
141   final static int opc_saload = 53;
142   final static int opc_istore = 54;
143   final static int opc_lstore = 55;
144   final static int opc_fstore = 56;
145   final static int opc_dstore = 57;
146   final static int opc_astore = 58;
147   final static int opc_istore_0 = 59;
148   final static int opc_istore_1 = 60;
149   final static int opc_istore_2 = 61;
150   final static int opc_istore_3 = 62;
151   final static int opc_lstore_0 = 63;
152   final static int opc_lstore_1 = 64;
153   final static int opc_lstore_2 = 65;
154   final static int opc_lstore_3 = 66;
155   final static int opc_fstore_0 = 67;
156   final static int opc_fstore_1 = 68;
157   final static int opc_fstore_2 = 69;
158   final static int opc_fstore_3 = 70;
159   final static int opc_dstore_0 = 71;
160   final static int opc_dstore_1 = 72;
161   final static int opc_dstore_2 = 73;
162   final static int opc_dstore_3 = 74;
163   final static int opc_astore_0 = 75;
164   final static int opc_astore_1 = 76;
165   final static int opc_astore_2 = 77;
166   final static int opc_astore_3 = 78;
167   final static int opc_iastore = 79;
168   final static int opc_lastore = 80;
169   final static int opc_fastore = 81;
170   final static int opc_dastore = 82;
171   final static int opc_aastore = 83;
172   final static int opc_bastore = 84;
173   final static int opc_castore = 85;
174   final static int opc_sastore = 86;
175   final static int opc_pop = 87;
176   final static int opc_pop2 = 88;
177   final static int opc_dup = 89;
178   final static int opc_dup_x1 = 90;
179   final static int opc_dup_x2 = 91;
180   final static int opc_dup2 = 92;
181   final static int opc_dup2_x1 = 93;
182   final static int opc_dup2_x2 = 94;
183   final static int opc_swap = 95;
184   final static int opc_iadd = 96;
185   final static int opc_ladd = 97;
186   final static int opc_fadd = 98;
187   final static int opc_dadd = 99;
188   final static int opc_isub = 100;
189   final static int opc_lsub = 101;
190   final static int opc_fsub = 102;
191   final static int opc_dsub = 103;
192   final static int opc_imul = 104;
193   final static int opc_lmul = 105;
194   final static int opc_fmul = 106;
195   final static int opc_dmul = 107;
196   final static int opc_idiv = 108;
197   final static int opc_ldiv = 109;
198   final static int opc_fdiv = 110;
199   final static int opc_ddiv = 111;
200   final static int opc_irem = 112;
201   final static int opc_lrem = 113;
202   final static int opc_frem = 114;
203   final static int opc_drem = 115;
204   final static int opc_ineg = 116;
205   final static int opc_lneg = 117;
206   final static int opc_fneg = 118;
207   final static int opc_dneg = 119;
208   final static int opc_ishl = 120;
209   final static int opc_lshl = 121;
210   final static int opc_ishr = 122;
211   final static int opc_lshr = 123;
212   final static int opc_iushr = 124;
213   final static int opc_lushr = 125;
214   final static int opc_iand = 126;
215   final static int opc_land = 127;
216   final static int opc_ior = 128;
217   final static int opc_lor = 129;
218   final static int opc_ixor = 130;
219   final static int opc_lxor = 131;
220   final static int opc_iinc = 132;
221   final static int opc_i2l = 133;
222   final static int opc_i2f = 134;
223   final static int opc_i2d = 135;
224   final static int opc_l2i = 136;
225   final static int opc_l2f = 137;
226   final static int opc_l2d = 138;
227   final static int opc_f2i = 139;
228   final static int opc_f2l = 140;
229   final static int opc_f2d = 141;
230   final static int opc_d2i = 142;
231   final static int opc_d2l = 143;
232   final static int opc_d2f = 144;
233   final static int opc_i2b = 145;
234   final static int opc_i2c = 146;
235   final static int opc_i2s = 147;
236   final static int opc_lcmp = 148;
237   final static int opc_fcmpl = 149;
238   final static int opc_fcmpg = 150;
239   final static int opc_dcmpl = 151;
240   final static int opc_dcmpg = 152;
241   final static int opc_ifeq = 153;
242   final static int opc_ifne = 154;
243   final static int opc_iflt = 155;
244   final static int opc_ifge = 156;
245   final static int opc_ifgt = 157;
246   final static int opc_ifle = 158;
247   final static int opc_if_icmpeq = 159;
248   final static int opc_if_icmpne = 160;
249   final static int opc_if_icmplt = 161;
250   final static int opc_if_icmpge = 162;
251   final static int opc_if_icmpgt = 163;
252   final static int opc_if_icmple = 164;
253   final static int opc_if_acmpeq = 165;
254   final static int opc_if_acmpne = 166;
255   final static int opc_goto = 167;
256   final static int opc_jsr = 168;
257   final static int opc_ret = 169;
258   final static int opc_tableswitch = 170;
259   final static int opc_lookupswitch = 171;
260   final static int opc_ireturn = 172;
261   final static int opc_lreturn = 173;
262   final static int opc_freturn = 174;
263   final static int opc_dreturn = 175;
264   final static int opc_areturn = 176;
265   final static int opc_return = 177;
266   final static int opc_getstatic = 178;
267   final static int opc_putstatic = 179;
268   final static int opc_getfield = 180;
269   final static int opc_putfield = 181;
270   final static int opc_invokevirtual = 182;
271   final static int opc_invokespecial = 183;
272   final static int opc_invokestatic = 184;
273   final static int opc_invokeinterface = 185;
274   final static int opc_xxxunusedxxx = 186;
275   final static int opc_new = 187;
276   final static int opc_newarray = 188;
277   final static int opc_anewarray = 189;
278   final static int opc_arraylength = 190;
279   final static int opc_athrow = 191;
280   final static int opc_checkcast = 192;
281   final static int opc_instanceof = 193;
282   final static int opc_monitorenter = 194;
283   final static int opc_monitorexit = 195;
284   final static int opc_wide = 196;
285   final static int opc_multianewarray = 197;
286   final static int opc_ifnull = 198;
287   final static int opc_ifnonnull = 199;
288   final static int opc_goto_w = 200;
289   final static int opc_jsr_w = 201;
290 }
291
Popular Tags