sort of working
[org.ibex.classgen.git] / src / org / ibex / classgen / CGConst.java
1 package org.ibex.classgen;
2
3 public interface CGConst {
4     public static final int ACC_PUBLIC    = (byte) 0x0001;
5     public static final int ACC_FINAL     = (byte) 0x0010;
6     
7     // Class only
8     public static final int ACC_INTERFACE = (byte) 0x0200;
9     public static final int ACC_SUPER     = (byte) 0x0020;
10
11     // Field/Method only
12     public static final int ACC_PRIVATE   = (byte) 0x0002;
13     public static final int ACC_PROTECTED = (byte) 0x0004;
14     public static final int ACC_STATIC    = (byte) 0x0008;
15
16     // Class/Method only
17     public static final int ACC_ABSTRACT  = (byte) 0x0400;
18     
19     // Method Only
20     public static final int ACC_SYNCHRONIZED = (byte) 0x0020;
21     public static final int ACC_NATIVE       = (byte) 0x0100;
22     public static final int ACC_STRICT       = (byte) 0x0800;
23
24     // Field only
25     public static final int ACC_VOLATILE  = (byte) 0x0040;
26     public static final int ACC_TRANSIENT = (byte) 0x0080;
27     
28     // Instructions
29     public static final byte NOP = (byte) 0x0; 
30     public static final byte ACONST_NULL = (byte) 0x01;
31     public static final byte ICONST_M1 = (byte) 0x02;
32     public static final byte ICONST_0 = (byte) 0x03;
33     public static final byte ICONST_1 = (byte) 0x04;
34     public static final byte ICONST_2 = (byte) 0x05;
35     public static final byte ICONST_3 = (byte) 0x06;
36     public static final byte ICONST_4 = (byte) 0x07;
37     public static final byte ICONST_5 = (byte) 0x08;
38     public static final byte LCONST_0 = (byte) 0x09;
39     public static final byte LCONST_1 = (byte) 0x0A;
40     public static final byte FCONST_0 = (byte) 0x0B;
41     public static final byte FCONST_1 = (byte) 0x0C;
42     public static final byte FCONST_2 = (byte) 0x0D;
43     public static final byte DCONST_0 = (byte) 0x0E;
44     public static final byte DCONST_1 = (byte) 0x0F;
45     public static final byte BIPUSH = (byte) 0x10;
46     public static final byte SIPUSH = (byte) 0x11;
47     public static final byte LDC = (byte) 0x12;
48     public static final byte LDC_W = (byte) 0x13;
49     public static final byte LDC2_W = (byte) 0x14;
50     public static final byte ILOAD = (byte) 0x15;
51     public static final byte LLOAD = (byte) 0x16;
52     public static final byte FLOAD = (byte) 0x17;
53     public static final byte DLOAD = (byte) 0x18;
54     public static final byte ALOAD = (byte) 0x19;
55     public static final byte ILOAD_0 = (byte) 0x1A;
56     public static final byte ILOAD_1 = (byte) 0x1B;
57     public static final byte ILOAD_2 = (byte) 0x1C;
58     public static final byte ILOAD_3 = (byte) 0x1D;
59     public static final byte LLOAD_0 = (byte) 0x1E;
60     public static final byte LLOAD_1 = (byte) 0x1F;
61     public static final byte LLOAD_2 = (byte) 0x20;
62     public static final byte LLOAD_3 = (byte) 0x21;
63     public static final byte FLOAD_0 = (byte) 0x22;
64     public static final byte FLOAD_1 = (byte) 0x23;
65     public static final byte FLOAD_2 = (byte) 0x24;
66     public static final byte FLOAD_3 = (byte) 0x25;
67     public static final byte DLOAD_0 = (byte) 0x26;
68     public static final byte DLOAD_1 = (byte) 0x27;
69     public static final byte DLOAD_2 = (byte) 0x28;
70     public static final byte DLOAD_3 = (byte) 0x29;
71     public static final byte ALOAD_0 = (byte) 0x2A;
72     public static final byte ALOAD_1 = (byte) 0x2B;
73     public static final byte ALOAD_2 = (byte) 0x2C;
74     public static final byte ALOAD_3 = (byte) 0x2D;
75     public static final byte IALOAD = (byte) 0x2E;
76     public static final byte LALOAD = (byte) 0x2F;
77     public static final byte FALOAD = (byte) 0x30;
78     public static final byte DALOAD = (byte) 0x31;
79     public static final byte AALOAD = (byte) 0x32;
80     public static final byte BALOAD = (byte) 0x33;
81     public static final byte CALOAD = (byte) 0x34;
82     public static final byte SALOAD = (byte) 0x35;
83     public static final byte ISTORE = (byte) 0x36;
84     public static final byte LSTORE = (byte) 0x37;
85     public static final byte FSTORE = (byte) 0x38;
86     public static final byte DSTORE = (byte) 0x39;
87     public static final byte ASTORE = (byte) 0x3A;
88     public static final byte ISTORE_0 = (byte) 0x3B;
89     public static final byte ISTORE_1 = (byte) 0x3C;
90     public static final byte ISTORE_2 = (byte) 0x3D;
91     public static final byte ISTORE_3 = (byte) 0x3E;
92     public static final byte LSTORE_0 = (byte) 0x3F;
93     public static final byte LSTORE_1 = (byte) 0x40;
94     public static final byte LSTORE_2 = (byte) 0x41;
95     public static final byte LSTORE_3 = (byte) 0x42;
96     public static final byte FSTORE_0 = (byte) 0x43;
97     public static final byte FSTORE_1 = (byte) 0x44;
98     public static final byte FSTORE_2 = (byte) 0x45;
99     public static final byte FSTORE_3 = (byte) 0x46;
100     public static final byte DSTORE_0 = (byte) 0x47;
101     public static final byte DSTORE_1 = (byte) 0x48;
102     public static final byte DSTORE_2 = (byte) 0x49;
103     public static final byte DSTORE_3 = (byte) 0x4A;
104     public static final byte ASTORE_0 = (byte) 0x4B;
105     public static final byte ASTORE_1 = (byte) 0x4C;
106     public static final byte ASTORE_2 = (byte) 0x4D;
107     public static final byte ASTORE_3 = (byte) 0x4E;
108     public static final byte IASTORE = (byte) 0x4F;
109     public static final byte LASTORE = (byte) 0x50;
110     public static final byte FASTORE = (byte) 0x51;
111     public static final byte DASTORE = (byte) 0x52;
112     public static final byte AASTORE = (byte) 0x53;
113     public static final byte BASTORE = (byte) 0x54;
114     public static final byte CASTORE = (byte) 0x55;
115     public static final byte SASTORE = (byte) 0x56;
116     public static final byte POP = (byte) 0x57;
117     public static final byte POP2 = (byte) 0x58;
118     public static final byte DUP = (byte) 0x59;
119     public static final byte DUP_X1 = (byte) 0x5A;
120     public static final byte DUP_X2 = (byte) 0x5B;
121     public static final byte DUP2 = (byte) 0x5C;
122     public static final byte DUP2_X1 = (byte) 0x5D;
123     public static final byte DUP2_X2 = (byte) 0x5E;
124     public static final byte SWAP = (byte) 0x5F;
125     public static final byte IADD = (byte) 0x60;
126     public static final byte LADD = (byte) 0x61;
127     public static final byte FADD = (byte) 0x62;
128     public static final byte DADD = (byte) 0x63;
129     public static final byte ISUB = (byte) 0x64;
130     public static final byte LSUB = (byte) 0x65;
131     public static final byte FSUB = (byte) 0x66;
132     public static final byte DSUB = (byte) 0x67;
133     public static final byte IMUL = (byte) 0x68;
134     public static final byte LMUL = (byte) 0x69;
135     public static final byte FMUL = (byte) 0x6A;
136     public static final byte DMUL = (byte) 0x6B;
137     public static final byte IDIV = (byte) 0x6C;
138     public static final byte LDIV = (byte) 0x6D;
139     public static final byte FDIV = (byte) 0x6E;
140     public static final byte DDIV = (byte) 0x6F;
141     public static final byte IREM = (byte) 0x70;
142     public static final byte LREM = (byte) 0x71;
143     public static final byte FREM = (byte) 0x72;
144     public static final byte DREM = (byte) 0x73;
145     public static final byte INET = (byte) 0x74;
146     public static final byte LNEG = (byte) 0x75;
147     public static final byte FNEG = (byte) 0x76;
148     public static final byte DNEG = (byte) 0x77;
149     public static final byte ISHL = (byte) 0x78;
150     public static final byte LSHL = (byte) 0x79;
151     public static final byte ISHR = (byte) 0x7A;
152     public static final byte LSHR = (byte) 0x7B;
153     public static final byte IUSHR = (byte) 0x7C;
154     public static final byte LUSHR = (byte) 0x7D;
155     public static final byte IAND = (byte) 0x7E;
156     public static final byte LAND = (byte) 0x7F;
157     public static final byte IOR = (byte) 0x80;
158     public static final byte LOR = (byte) 0x81;
159     public static final byte IXOR = (byte) 0x82;
160     public static final byte LXOR = (byte) 0x83;
161     public static final byte IINC = (byte) 0x84;
162     public static final byte I2L = (byte) 0x85;
163     public static final byte I2F = (byte) 0x86;
164     public static final byte I2D = (byte) 0x87;
165     public static final byte L2I = (byte) 0x88;
166     public static final byte L2F = (byte) 0x89;
167     public static final byte L2D = (byte) 0x8A;
168     public static final byte F2I = (byte) 0x8B;
169     public static final byte F2L = (byte) 0x8C;
170     public static final byte F2D = (byte) 0x8D;
171     public static final byte D2I = (byte) 0x8E;
172     public static final byte D2L = (byte) 0x8F;
173     public static final byte D2F = (byte) 0x90;
174     public static final byte I2B = (byte) 0x91;
175     public static final byte I2C = (byte) 0x92;
176     public static final byte I2S = (byte) 0x93;
177     public static final byte LCMP = (byte) 0x94;
178     public static final byte FCMPL = (byte) 0x95;
179     public static final byte FCMPG = (byte) 0x96;
180     public static final byte DCMPL = (byte) 0x97;
181     public static final byte DCMPG = (byte) 0x98;
182     public static final byte IFEQ = (byte) 0x99;
183     public static final byte IFNE = (byte) 0x9A;
184     public static final byte IFLT = (byte) 0x9B;
185     public static final byte IFGE = (byte) 0x9C;
186     public static final byte IFGT = (byte) 0x9D;
187     public static final byte IFLE = (byte) 0x9E;
188     public static final byte IF_ICMPEQ = (byte) 0x9F;
189     public static final byte IF_ICMPNE = (byte) 0xA0;
190     public static final byte IF_ICMPLT = (byte) 0xA1;
191     public static final byte IF_ICMPGE = (byte) 0xA2;
192     public static final byte IF_ICMPGT = (byte) 0xA3;
193     public static final byte IF_ICMPLE = (byte) 0xA4;
194     public static final byte IF_ACMPEQ = (byte) 0xA5;
195     public static final byte IF_ACMPNE = (byte) 0xA6;
196     public static final byte GOTO = (byte) 0xA7;
197     public static final byte JSR = (byte) 0xA8;
198     public static final byte RET = (byte) 0xA9;
199     public static final byte TABLESWITCH = (byte) 0xAA;
200     public static final byte LOOKUPSWITCH = (byte) 0xAB;
201     public static final byte IRETURN = (byte) 0xAC;
202     public static final byte LRETURN = (byte) 0xAD;
203     public static final byte FRETURN = (byte) 0xAE;
204     public static final byte DRETURN = (byte) 0xAF;
205     public static final byte ARETURN = (byte) 0xB0;
206     public static final byte RETURN = (byte) 0xB1;
207     public static final byte GETSTATIC = (byte) 0xB2;
208     public static final byte PUTSTATIC = (byte) 0xB3;
209     public static final byte GETFIELD = (byte) 0xB4;
210     public static final byte PUTFIELD = (byte) 0xB5;
211     public static final byte INVOKEVIRTUAL = (byte) 0xB6;
212     public static final byte INVOKESPECIAL = (byte) 0xB7;
213     public static final byte INVOKESTATIC = (byte) 0xB8;
214     public static final byte INVOKEINTERFACE = (byte) 0xB9;
215     public static final byte NEW = (byte) 0xBB;
216     public static final byte NEWARRAY = (byte) 0xBC;
217     public static final byte ANEWARRAY = (byte) 0xBD;
218     public static final byte ARRAYLENGTH = (byte) 0xBE;
219     public static final byte ATHROW = (byte) 0xBF;
220     public static final byte CHECKCAST = (byte) 0xC0;
221     public static final byte INSTANCEOF = (byte) 0xC1;
222     public static final byte MONITORENTER = (byte) 0xC2;
223     public static final byte MONITOREXIT = (byte) 0xC3;
224     public static final byte WIDE = (byte) 0xC4;
225     public static final byte MULTIANEWARRAY = (byte) 0xC5;
226     public static final byte IFNULL = (byte) 0xC6;
227     public static final byte IFNONNULL = (byte) 0xC7;
228     public static final byte GOTO_W = (byte) 0xC8;
229     public static final byte JSR_W = (byte) 0xC9;
230 }