KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > bcel > internal > generic > Visitor


1 package com.sun.org.apache.bcel.internal.generic;
2
3 /* ====================================================================
4  * The Apache Software License, Version 1.1
5  *
6  * Copyright (c) 2001 The Apache Software Foundation. All rights
7  * reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  *
13  * 1. Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  *
16  * 2. Redistributions in binary form must reproduce the above copyright
17  * notice, this list of conditions and the following disclaimer in
18  * the documentation and/or other materials provided with the
19  * distribution.
20  *
21  * 3. The end-user documentation included with the redistribution,
22  * if any, must include the following acknowledgment:
23  * "This product includes software developed by the
24  * Apache Software Foundation (http://www.apache.org/)."
25  * Alternately, this acknowledgment may appear in the software itself,
26  * if and wherever such third-party acknowledgments normally appear.
27  *
28  * 4. The names "Apache" and "Apache Software Foundation" and
29  * "Apache BCEL" must not be used to endorse or promote products
30  * derived from this software without prior written permission. For
31  * written permission, please contact apache@apache.org.
32  *
33  * 5. Products derived from this software may not be called "Apache",
34  * "Apache BCEL", nor may "Apache" appear in their name, without
35  * prior written permission of the Apache Software Foundation.
36  *
37  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
38  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
39  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
40  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
41  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
42  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
43  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
44  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
45  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
46  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
47  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
48  * SUCH DAMAGE.
49  * ====================================================================
50  *
51  * This software consists of voluntary contributions made by many
52  * individuals on behalf of the Apache Software Foundation. For more
53  * information on the Apache Software Foundation, please see
54  * <http://www.apache.org/>.
55  */

56
57 /**
58  * Interface implementing the Visitor pattern programming style.
59  * I.e., a class that implements this interface can handle all types of
60  * instructions with the properly typed methods just by calling the accept()
61  * method.
62  *
63  * @version $Id: Visitor.java,v 1.1.1.1 2001/10/29 20:00:28 jvanzyl Exp $
64  * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
65  */

66 public interface Visitor {
67   public void visitStackInstruction(StackInstruction obj);
68   public void visitLocalVariableInstruction(LocalVariableInstruction obj);
69   public void visitBranchInstruction(BranchInstruction obj);
70   public void visitLoadClass(LoadClass obj);
71   public void visitFieldInstruction(FieldInstruction obj);
72   public void visitIfInstruction(IfInstruction obj);
73   public void visitConversionInstruction(ConversionInstruction obj);
74   public void visitPopInstruction(PopInstruction obj);
75   public void visitStoreInstruction(StoreInstruction obj);
76   public void visitTypedInstruction(TypedInstruction obj);
77   public void visitSelect(Select obj);
78   public void visitJsrInstruction(JsrInstruction obj);
79   public void visitGotoInstruction(GotoInstruction obj);
80   public void visitUnconditionalBranch(UnconditionalBranch obj);
81   public void visitPushInstruction(PushInstruction obj);
82   public void visitArithmeticInstruction(ArithmeticInstruction obj);
83   public void visitCPInstruction(CPInstruction obj);
84   public void visitInvokeInstruction(InvokeInstruction obj);
85   public void visitArrayInstruction(ArrayInstruction obj);
86   public void visitAllocationInstruction(AllocationInstruction obj);
87   public void visitReturnInstruction(ReturnInstruction obj);
88   public void visitFieldOrMethod(FieldOrMethod obj);
89   public void visitConstantPushInstruction(ConstantPushInstruction obj);
90   public void visitExceptionThrower(ExceptionThrower obj);
91   public void visitLoadInstruction(LoadInstruction obj);
92   public void visitVariableLengthInstruction(VariableLengthInstruction obj);
93   public void visitStackProducer(StackProducer obj);
94   public void visitStackConsumer(StackConsumer obj);
95   public void visitACONST_NULL(ACONST_NULL obj);
96   public void visitGETSTATIC(GETSTATIC obj);
97   public void visitIF_ICMPLT(IF_ICMPLT obj);
98   public void visitMONITOREXIT(MONITOREXIT obj);
99   public void visitIFLT(IFLT obj);
100   public void visitLSTORE(LSTORE obj);
101   public void visitPOP2(POP2 obj);
102   public void visitBASTORE(BASTORE obj);
103   public void visitISTORE(ISTORE obj);
104   public void visitCHECKCAST(CHECKCAST obj);
105   public void visitFCMPG(FCMPG obj);
106   public void visitI2F(I2F obj);
107   public void visitATHROW(ATHROW obj);
108   public void visitDCMPL(DCMPL obj);
109   public void visitARRAYLENGTH(ARRAYLENGTH obj);
110   public void visitDUP(DUP obj);
111   public void visitINVOKESTATIC(INVOKESTATIC obj);
112   public void visitLCONST(LCONST obj);
113   public void visitDREM(DREM obj);
114   public void visitIFGE(IFGE obj);
115   public void visitCALOAD(CALOAD obj);
116   public void visitLASTORE(LASTORE obj);
117   public void visitI2D(I2D obj);
118   public void visitDADD(DADD obj);
119   public void visitINVOKESPECIAL(INVOKESPECIAL obj);
120   public void visitIAND(IAND obj);
121   public void visitPUTFIELD(PUTFIELD obj);
122   public void visitILOAD(ILOAD obj);
123   public void visitDLOAD(DLOAD obj);
124   public void visitDCONST(DCONST obj);
125   public void visitNEW(NEW obj);
126   public void visitIFNULL(IFNULL obj);
127   public void visitLSUB(LSUB obj);
128   public void visitL2I(L2I obj);
129   public void visitISHR(ISHR obj);
130   public void visitTABLESWITCH(TABLESWITCH obj);
131   public void visitIINC(IINC obj);
132   public void visitDRETURN(DRETURN obj);
133   public void visitFSTORE(FSTORE obj);
134   public void visitDASTORE(DASTORE obj);
135   public void visitIALOAD(IALOAD obj);
136   public void visitDDIV(DDIV obj);
137   public void visitIF_ICMPGE(IF_ICMPGE obj);
138   public void visitLAND(LAND obj);
139   public void visitIDIV(IDIV obj);
140   public void visitLOR(LOR obj);
141   public void visitCASTORE(CASTORE obj);
142   public void visitFREM(FREM obj);
143   public void visitLDC(LDC obj);
144   public void visitBIPUSH(BIPUSH obj);
145   public void visitDSTORE(DSTORE obj);
146   public void visitF2L(F2L obj);
147   public void visitFMUL(FMUL obj);
148   public void visitLLOAD(LLOAD obj);
149   public void visitJSR(JSR obj);
150   public void visitFSUB(FSUB obj);
151   public void visitSASTORE(SASTORE obj);
152   public void visitALOAD(ALOAD obj);
153   public void visitDUP2_X2(DUP2_X2 obj);
154   public void visitRETURN(RETURN obj);
155   public void visitDALOAD(DALOAD obj);
156   public void visitSIPUSH(SIPUSH obj);
157   public void visitDSUB(DSUB obj);
158   public void visitL2F(L2F obj);
159   public void visitIF_ICMPGT(IF_ICMPGT obj);
160   public void visitF2D(F2D obj);
161   public void visitI2L(I2L obj);
162   public void visitIF_ACMPNE(IF_ACMPNE obj);
163   public void visitPOP(POP obj);
164   public void visitI2S(I2S obj);
165   public void visitIFEQ(IFEQ obj);
166   public void visitSWAP(SWAP obj);
167   public void visitIOR(IOR obj);
168   public void visitIREM(IREM obj);
169   public void visitIASTORE(IASTORE obj);
170   public void visitNEWARRAY(NEWARRAY obj);
171   public void visitINVOKEINTERFACE(INVOKEINTERFACE obj);
172   public void visitINEG(INEG obj);
173   public void visitLCMP(LCMP obj);
174   public void visitJSR_W(JSR_W obj);
175   public void visitMULTIANEWARRAY(MULTIANEWARRAY obj);
176   public void visitDUP_X2(DUP_X2 obj);
177   public void visitSALOAD(SALOAD obj);
178   public void visitIFNONNULL(IFNONNULL obj);
179   public void visitDMUL(DMUL obj);
180   public void visitIFNE(IFNE obj);
181   public void visitIF_ICMPLE(IF_ICMPLE obj);
182   public void visitLDC2_W(LDC2_W obj);
183   public void visitGETFIELD(GETFIELD obj);
184   public void visitLADD(LADD obj);
185   public void visitNOP(NOP obj);
186   public void visitFALOAD(FALOAD obj);
187   public void visitINSTANCEOF(INSTANCEOF obj);
188   public void visitIFLE(IFLE obj);
189   public void visitLXOR(LXOR obj);
190   public void visitLRETURN(LRETURN obj);
191   public void visitFCONST(FCONST obj);
192   public void visitIUSHR(IUSHR obj);
193   public void visitBALOAD(BALOAD obj);
194   public void visitDUP2(DUP2 obj);
195   public void visitIF_ACMPEQ(IF_ACMPEQ obj);
196   public void visitIMPDEP1(IMPDEP1 obj);
197   public void visitMONITORENTER(MONITORENTER obj);
198   public void visitLSHL(LSHL obj);
199   public void visitDCMPG(DCMPG obj);
200   public void visitD2L(D2L obj);
201   public void visitIMPDEP2(IMPDEP2 obj);
202   public void visitL2D(L2D obj);
203   public void visitRET(RET obj);
204   public void visitIFGT(IFGT obj);
205   public void visitIXOR(IXOR obj);
206   public void visitINVOKEVIRTUAL(INVOKEVIRTUAL obj);
207   public void visitFASTORE(FASTORE obj);
208   public void visitIRETURN(IRETURN obj);
209   public void visitIF_ICMPNE(IF_ICMPNE obj);
210   public void visitFLOAD(FLOAD obj);
211   public void visitLDIV(LDIV obj);
212   public void visitPUTSTATIC(PUTSTATIC obj);
213   public void visitAALOAD(AALOAD obj);
214   public void visitD2I(D2I obj);
215   public void visitIF_ICMPEQ(IF_ICMPEQ obj);
216   public void visitAASTORE(AASTORE obj);
217   public void visitARETURN(ARETURN obj);
218   public void visitDUP2_X1(DUP2_X1 obj);
219   public void visitFNEG(FNEG obj);
220   public void visitGOTO_W(GOTO_W obj);
221   public void visitD2F(D2F obj);
222   public void visitGOTO(GOTO obj);
223   public void visitISUB(ISUB obj);
224   public void visitF2I(F2I obj);
225   public void visitDNEG(DNEG obj);
226   public void visitICONST(ICONST obj);
227   public void visitFDIV(FDIV obj);
228   public void visitI2B(I2B obj);
229   public void visitLNEG(LNEG obj);
230   public void visitLREM(LREM obj);
231   public void visitIMUL(IMUL obj);
232   public void visitIADD(IADD obj);
233   public void visitLSHR(LSHR obj);
234   public void visitLOOKUPSWITCH(LOOKUPSWITCH obj);
235   public void visitDUP_X1(DUP_X1 obj);
236   public void visitFCMPL(FCMPL obj);
237   public void visitI2C(I2C obj);
238   public void visitLMUL(LMUL obj);
239   public void visitLUSHR(LUSHR obj);
240   public void visitISHL(ISHL obj);
241   public void visitLALOAD(LALOAD obj);
242   public void visitASTORE(ASTORE obj);
243   public void visitANEWARRAY(ANEWARRAY obj);
244   public void visitFRETURN(FRETURN obj);
245   public void visitFADD(FADD obj);
246   public void visitBREAKPOINT(BREAKPOINT obj);
247 }
248
Popular Tags