package org.apache.bcel.generic; /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" and * "Apache BCEL" must not be used to endorse or promote products * derived from this software without prior written permission. For * written permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * "Apache BCEL", nor may "Apache" appear in their name, without * prior written permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * . */ /** * Interface implementing the Visitor pattern programming style. * I.e., a class that implements this interface can handle all types of * instructions with the properly typed methods just by calling the accept() * method. * * @version $Id: Visitor.java,v 1.1.1.1 2001/10/29 20:00:28 jvanzyl Exp $ * @author M. Dahm */ public interface Visitor { public void visitStackInstruction(StackInstruction obj); public void visitLocalVariableInstruction(LocalVariableInstruction obj); public void visitBranchInstruction(BranchInstruction obj); public void visitLoadClass(LoadClass obj); public void visitFieldInstruction(FieldInstruction obj); public void visitIfInstruction(IfInstruction obj); public void visitConversionInstruction(ConversionInstruction obj); public void visitPopInstruction(PopInstruction obj); public void visitStoreInstruction(StoreInstruction obj); public void visitTypedInstruction(TypedInstruction obj); public void visitSelect(Select obj); public void visitJsrInstruction(JsrInstruction obj); public void visitGotoInstruction(GotoInstruction obj); public void visitUnconditionalBranch(UnconditionalBranch obj); public void visitPushInstruction(PushInstruction obj); public void visitArithmeticInstruction(ArithmeticInstruction obj); public void visitCPInstruction(CPInstruction obj); public void visitInvokeInstruction(InvokeInstruction obj); public void visitArrayInstruction(ArrayInstruction obj); public void visitAllocationInstruction(AllocationInstruction obj); public void visitReturnInstruction(ReturnInstruction obj); public void visitFieldOrMethod(FieldOrMethod obj); public void visitConstantPushInstruction(ConstantPushInstruction obj); public void visitExceptionThrower(ExceptionThrower obj); public void visitLoadInstruction(LoadInstruction obj); public void visitVariableLengthInstruction(VariableLengthInstruction obj); public void visitStackProducer(StackProducer obj); public void visitStackConsumer(StackConsumer obj); public void visitACONST_NULL(ACONST_NULL obj); public void visitGETSTATIC(GETSTATIC obj); public void visitIF_ICMPLT(IF_ICMPLT obj); public void visitMONITOREXIT(MONITOREXIT obj); public void visitIFLT(IFLT obj); public void visitLSTORE(LSTORE obj); public void visitPOP2(POP2 obj); public void visitBASTORE(BASTORE obj); public void visitISTORE(ISTORE obj); public void visitCHECKCAST(CHECKCAST obj); public void visitFCMPG(FCMPG obj); public void visitI2F(I2F obj); public void visitATHROW(ATHROW obj); public void visitDCMPL(DCMPL obj); public void visitARRAYLENGTH(ARRAYLENGTH obj); public void visitDUP(DUP obj); public void visitINVOKESTATIC(INVOKESTATIC obj); public void visitLCONST(LCONST obj); public void visitDREM(DREM obj); public void visitIFGE(IFGE obj); public void visitCALOAD(CALOAD obj); public void visitLASTORE(LASTORE obj); public void visitI2D(I2D obj); public void visitDADD(DADD obj); public void visitINVOKESPECIAL(INVOKESPECIAL obj); public void visitIAND(IAND obj); public void visitPUTFIELD(PUTFIELD obj); public void visitILOAD(ILOAD obj); public void visitDLOAD(DLOAD obj); public void visitDCONST(DCONST obj); public void visitNEW(NEW obj); public void visitIFNULL(IFNULL obj); public void visitLSUB(LSUB obj); public void visitL2I(L2I obj); public void visitISHR(ISHR obj); public void visitTABLESWITCH(TABLESWITCH obj); public void visitIINC(IINC obj); public void visitDRETURN(DRETURN obj); public void visitFSTORE(FSTORE obj); public void visitDASTORE(DASTORE obj); public void visitIALOAD(IALOAD obj); public void visitDDIV(DDIV obj); public void visitIF_ICMPGE(IF_ICMPGE obj); public void visitLAND(LAND obj); public void visitIDIV(IDIV obj); public void visitLOR(LOR obj); public void visitCASTORE(CASTORE obj); public void visitFREM(FREM obj); public void visitLDC(LDC obj); public void visitBIPUSH(BIPUSH obj); public void visitDSTORE(DSTORE obj); public void visitF2L(F2L obj); public void visitFMUL(FMUL obj); public void visitLLOAD(LLOAD obj); public void visitJSR(JSR obj); public void visitFSUB(FSUB obj); public void visitSASTORE(SASTORE obj); public void visitALOAD(ALOAD obj); public void visitDUP2_X2(DUP2_X2 obj); public void visitRETURN(RETURN obj); public void visitDALOAD(DALOAD obj); public void visitSIPUSH(SIPUSH obj); public void visitDSUB(DSUB obj); public void visitL2F(L2F obj); public void visitIF_ICMPGT(IF_ICMPGT obj); public void visitF2D(F2D obj); public void visitI2L(I2L obj); public void visitIF_ACMPNE(IF_ACMPNE obj); public void visitPOP(POP obj); public void visitI2S(I2S obj); public void visitIFEQ(IFEQ obj); public void visitSWAP(SWAP obj); public void visitIOR(IOR obj); public void visitIREM(IREM obj); public void visitIASTORE(IASTORE obj); public void visitNEWARRAY(NEWARRAY obj); public void visitINVOKEINTERFACE(INVOKEINTERFACE obj); public void visitINEG(INEG obj); public void visitLCMP(LCMP obj); public void visitJSR_W(JSR_W obj); public void visitMULTIANEWARRAY(MULTIANEWARRAY obj); public void visitDUP_X2(DUP_X2 obj); public void visitSALOAD(SALOAD obj); public void visitIFNONNULL(IFNONNULL obj); public void visitDMUL(DMUL obj); public void visitIFNE(IFNE obj); public void visitIF_ICMPLE(IF_ICMPLE obj); public void visitLDC2_W(LDC2_W obj); public void visitGETFIELD(GETFIELD obj); public void visitLADD(LADD obj); public void visitNOP(NOP obj); public void visitFALOAD(FALOAD obj); public void visitINSTANCEOF(INSTANCEOF obj); public void visitIFLE(IFLE obj); public void visitLXOR(LXOR obj); public void visitLRETURN(LRETURN obj); public void visitFCONST(FCONST obj); public void visitIUSHR(IUSHR obj); public void visitBALOAD(BALOAD obj); public void visitDUP2(DUP2 obj); public void visitIF_ACMPEQ(IF_ACMPEQ obj); public void visitIMPDEP1(IMPDEP1 obj); public void visitMONITORENTER(MONITORENTER obj); public void visitLSHL(LSHL obj); public void visitDCMPG(DCMPG obj); public void visitD2L(D2L obj); public void visitIMPDEP2(IMPDEP2 obj); public void visitL2D(L2D obj); public void visitRET(RET obj); public void visitIFGT(IFGT obj); public void visitIXOR(IXOR obj); public void visitINVOKEVIRTUAL(INVOKEVIRTUAL obj); public void visitFASTORE(FASTORE obj); public void visitIRETURN(IRETURN obj); public void visitIF_ICMPNE(IF_ICMPNE obj); public void visitFLOAD(FLOAD obj); public void visitLDIV(LDIV obj); public void visitPUTSTATIC(PUTSTATIC obj); public void visitAALOAD(AALOAD obj); public void visitD2I(D2I obj); public void visitIF_ICMPEQ(IF_ICMPEQ obj); public void visitAASTORE(AASTORE obj); public void visitARETURN(ARETURN obj); public void visitDUP2_X1(DUP2_X1 obj); public void visitFNEG(FNEG obj); public void visitGOTO_W(GOTO_W obj); public void visitD2F(D2F obj); public void visitGOTO(GOTO obj); public void visitISUB(ISUB obj); public void visitF2I(F2I obj); public void visitDNEG(DNEG obj); public void visitICONST(ICONST obj); public void visitFDIV(FDIV obj); public void visitI2B(I2B obj); public void visitLNEG(LNEG obj); public void visitLREM(LREM obj); public void visitIMUL(IMUL obj); public void visitIADD(IADD obj); public void visitLSHR(LSHR obj); public void visitLOOKUPSWITCH(LOOKUPSWITCH obj); public void visitDUP_X1(DUP_X1 obj); public void visitFCMPL(FCMPL obj); public void visitI2C(I2C obj); public void visitLMUL(LMUL obj); public void visitLUSHR(LUSHR obj); public void visitISHL(ISHL obj); public void visitLALOAD(LALOAD obj); public void visitASTORE(ASTORE obj); public void visitANEWARRAY(ANEWARRAY obj); public void visitFRETURN(FRETURN obj); public void visitFADD(FADD obj); public void visitBREAKPOINT(BREAKPOINT obj); }