KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > util > IBytecodeVisitor


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.core.util;
12
13 /**
14  * Description of a Java opcodes visitor. This should be used to walk the opcodes
15  * of a ICodeAttribute.
16  *
17  * This interface is not intended to be implemented by clients.
18  *
19  * @since 2.0
20  */

21 public interface IBytecodeVisitor {
22
23     void _aaload(int pc);
24     void _aastore(int pc);
25     void _aconst_null(int pc);
26     void _aload(int pc, int index);
27     void _aload_0(int pc);
28     void _aload_1(int pc);
29     void _aload_2(int pc);
30     void _aload_3(int pc);
31     void _anewarray(
32         int pc,
33         int index,
34         IConstantPoolEntry constantClass);
35     void _areturn(int pc);
36     void _arraylength(int pc);
37     void _astore(int pc, int index);
38     void _astore_0(int pc);
39     void _astore_1(int pc);
40     void _astore_2(int pc);
41     void _astore_3(int pc);
42     void _athrow(int pc);
43     void _baload(int pc);
44     void _bastore(int pc);
45     void _bipush(int pc, byte _byte);
46     void _caload(int pc);
47     void _castore(int pc);
48     void _checkcast(
49         int pc,
50         int index,
51         IConstantPoolEntry constantClass);
52     void _d2f(int pc);
53     void _d2i(int pc);
54     void _d2l(int pc);
55     void _dadd(int pc);
56     void _daload(int pc);
57     void _dastore(int pc);
58     void _dcmpg(int pc);
59     void _dcmpl(int pc);
60     void _dconst_0(int pc);
61     void _dconst_1(int pc);
62     void _ddiv(int pc);
63     void _dload(int pc, int index);
64     void _dload_0(int pc);
65     void _dload_1(int pc);
66     void _dload_2(int pc);
67     void _dload_3(int pc);
68     void _dmul(int pc);
69     void _dneg(int pc);
70     void _drem(int pc);
71     void _dreturn(int pc);
72     void _dstore(int pc, int index);
73     void _dstore_0(int pc);
74     void _dstore_1(int pc);
75     void _dstore_2(int pc);
76     void _dstore_3(int pc);
77     void _dsub(int pc);
78     void _dup(int pc);
79     void _dup_x1(int pc);
80     void _dup_x2(int pc);
81     void _dup2(int pc);
82     void _dup2_x1(int pc);
83     void _dup2_x2(int pc);
84     void _f2d(int pc);
85     void _f2i(int pc);
86     void _f2l(int pc);
87     void _fadd(int pc);
88     void _faload(int pc);
89     void _fastore(int pc);
90     void _fcmpg(int pc);
91     void _fcmpl(int pc);
92     void _fconst_0(int pc);
93     void _fconst_1(int pc);
94     void _fconst_2(int pc);
95     void _fdiv(int pc);
96     void _fload(int pc, int index);
97     void _fload_0(int pc);
98     void _fload_1(int pc);
99     void _fload_2(int pc);
100     void _fload_3(int pc);
101     void _fmul(int pc);
102     void _fneg(int pc);
103     void _frem(int pc);
104     void _freturn(int pc);
105     void _fstore(int pc, int index);
106     void _fstore_0(int pc);
107     void _fstore_1(int pc);
108     void _fstore_2(int pc);
109     void _fstore_3(int pc);
110     void _fsub(int pc);
111     void _getfield(
112         int pc,
113         int index,
114         IConstantPoolEntry constantFieldref);
115     void _getstatic(
116         int pc,
117         int index,
118         IConstantPoolEntry constantFieldref);
119     void _goto(int pc, int branchOffset);
120     void _goto_w(int pc, int branchOffset);
121     void _i2b(int pc);
122     void _i2c(int pc);
123     void _i2d(int pc);
124     void _i2f(int pc);
125     void _i2l(int pc);
126     void _i2s(int pc);
127     void _iadd(int pc);
128     void _iaload(int pc);
129     void _iand(int pc);
130     void _iastore(int pc);
131     void _iconst_m1(int pc);
132     void _iconst_0(int pc);
133     void _iconst_1(int pc);
134     void _iconst_2(int pc);
135     void _iconst_3(int pc);
136     void _iconst_4(int pc);
137     void _iconst_5(int pc);
138     void _idiv(int pc);
139     void _if_acmpeq(int pc, int branchOffset);
140     void _if_acmpne(int pc, int branchOffset);
141     void _if_icmpeq(int pc, int branchOffset);
142     void _if_icmpne(int pc, int branchOffset);
143     void _if_icmplt(int pc, int branchOffset);
144     void _if_icmpge(int pc, int branchOffset);
145     void _if_icmpgt(int pc, int branchOffset);
146     void _if_icmple(int pc, int branchOffset);
147     void _ifeq(int pc, int branchOffset);
148     void _ifne(int pc, int branchOffset);
149     void _iflt(int pc, int branchOffset);
150     void _ifge(int pc, int branchOffset);
151     void _ifgt(int pc, int branchOffset);
152     void _ifle(int pc, int branchOffset);
153     void _ifnonnull(int pc, int branchOffset);
154     void _ifnull(int pc, int branchOffset);
155     void _iinc(int pc, int index, int _const);
156     void _iload(int pc, int index);
157     void _iload_0(int pc);
158     void _iload_1(int pc);
159     void _iload_2(int pc);
160     void _iload_3(int pc);
161     void _imul(int pc);
162     void _ineg(int pc);
163     void _instanceof(
164         int pc,
165         int index,
166         IConstantPoolEntry constantClass);
167     void _invokeinterface(
168         int pc,
169         int index,
170         byte nargs,
171         IConstantPoolEntry constantInterfaceMethodref);
172     void _invokespecial(
173         int pc,
174         int index,
175         IConstantPoolEntry constantMethodref);
176     void _invokestatic(
177         int pc,
178         int index,
179         IConstantPoolEntry constantMethodref);
180     void _invokevirtual(
181         int pc,
182         int index,
183         IConstantPoolEntry constantMethodref);
184     void _ior(int pc);
185     void _irem(int pc);
186     void _ireturn(int pc);
187     void _ishl(int pc);
188     void _ishr(int pc);
189     void _istore(int pc, int index);
190     void _istore_0(int pc);
191     void _istore_1(int pc);
192     void _istore_2(int pc);
193     void _istore_3(int pc);
194     void _isub(int pc);
195     void _iushr(int pc);
196     void _ixor(int pc);
197     void _jsr(int pc, int branchOffset);
198     void _jsr_w(int pc, int branchOffset);
199     void _l2d(int pc);
200     void _l2f(int pc);
201     void _l2i(int pc);
202     void _ladd(int pc);
203     void _laload(int pc);
204     void _land(int pc);
205     void _lastore(int pc);
206     void _lcmp(int pc);
207     void _lconst_0(int pc);
208     void _lconst_1(int pc);
209     void _ldc(int pc, int index, IConstantPoolEntry constantPoolEntry);
210     void _ldc_w(int pc, int index, IConstantPoolEntry constantPoolEntry);
211     void _ldc2_w(int pc, int index, IConstantPoolEntry constantPoolEntry);
212     void _ldiv(int pc);
213     void _lload(int pc, int index);
214     void _lload_0(int pc);
215     void _lload_1(int pc);
216     void _lload_2(int pc);
217     void _lload_3(int pc);
218     void _lmul(int pc);
219     void _lneg(int pc);
220     void _lookupswitch(
221         int pc,
222         int defaultoffset,
223         int npairs,
224         int[][] offset_pairs);
225     void _lor(int pc);
226     void _lrem(int pc);
227     void _lreturn(int pc);
228     void _lshl(int pc);
229     void _lshr(int pc);
230     void _lstore(int pc, int index);
231     void _lstore_0(int pc);
232     void _lstore_1(int pc);
233     void _lstore_2(int pc);
234     void _lstore_3(int pc);
235     void _lsub(int pc);
236     void _lushr(int pc);
237     void _lxor(int pc);
238     void _monitorenter(int pc);
239     void _monitorexit(int pc);
240     void _multianewarray(
241         int pc,
242         int index,
243         int dimensions,
244         IConstantPoolEntry constantClass);
245     void _new(
246         int pc,
247         int index,
248         IConstantPoolEntry constantClass);
249     void _newarray(int pc, int atype);
250     void _nop(int pc);
251     void _pop(int pc);
252     void _pop2(int pc);
253     void _putfield(
254         int pc,
255         int index,
256         IConstantPoolEntry constantFieldref);
257     void _putstatic(
258         int pc,
259         int index,
260         IConstantPoolEntry constantFieldref);
261     void _ret(int pc, int index);
262     void _return(int pc);
263     void _saload(int pc);
264     void _sastore(int pc);
265     void _sipush(int pc, short value);
266     void _swap(int pc);
267     void _tableswitch(
268         int pc,
269         int defaultoffset,
270         int low,
271         int high,
272         int[] jump_offsets);
273     void _wide(
274         int pc,
275         int opcode,
276         int index);
277     void _wide(
278         int pc,
279         int iincopcode,
280         int index,
281         int _const);
282     void _breakpoint(int pc);
283     void _impdep1(int pc);
284     void _impdep2(int pc);
285 }
286
Popular Tags