Don't need the Vistor and associated support
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 4 Dec 2009 18:56:38 +0000 (18:56 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 4 Dec 2009 18:56:38 +0000 (18:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@887319 13f79535-47bb-0310-9956-ffa450edef68

161 files changed:
java/org/apache/tomcat/util/bcel/classfile/EmptyVisitor.java [deleted file]
java/org/apache/tomcat/util/bcel/generic/AALOAD.java
java/org/apache/tomcat/util/bcel/generic/AASTORE.java
java/org/apache/tomcat/util/bcel/generic/ACONST_NULL.java
java/org/apache/tomcat/util/bcel/generic/ALOAD.java
java/org/apache/tomcat/util/bcel/generic/ANEWARRAY.java
java/org/apache/tomcat/util/bcel/generic/ARETURN.java
java/org/apache/tomcat/util/bcel/generic/ARRAYLENGTH.java
java/org/apache/tomcat/util/bcel/generic/ASTORE.java
java/org/apache/tomcat/util/bcel/generic/ATHROW.java
java/org/apache/tomcat/util/bcel/generic/BALOAD.java
java/org/apache/tomcat/util/bcel/generic/BASTORE.java
java/org/apache/tomcat/util/bcel/generic/BIPUSH.java
java/org/apache/tomcat/util/bcel/generic/BREAKPOINT.java
java/org/apache/tomcat/util/bcel/generic/CALOAD.java
java/org/apache/tomcat/util/bcel/generic/CASTORE.java
java/org/apache/tomcat/util/bcel/generic/CHECKCAST.java
java/org/apache/tomcat/util/bcel/generic/D2F.java
java/org/apache/tomcat/util/bcel/generic/D2I.java
java/org/apache/tomcat/util/bcel/generic/D2L.java
java/org/apache/tomcat/util/bcel/generic/DADD.java
java/org/apache/tomcat/util/bcel/generic/DALOAD.java
java/org/apache/tomcat/util/bcel/generic/DASTORE.java
java/org/apache/tomcat/util/bcel/generic/DCMPG.java
java/org/apache/tomcat/util/bcel/generic/DCMPL.java
java/org/apache/tomcat/util/bcel/generic/DCONST.java
java/org/apache/tomcat/util/bcel/generic/DDIV.java
java/org/apache/tomcat/util/bcel/generic/DLOAD.java
java/org/apache/tomcat/util/bcel/generic/DMUL.java
java/org/apache/tomcat/util/bcel/generic/DNEG.java
java/org/apache/tomcat/util/bcel/generic/DREM.java
java/org/apache/tomcat/util/bcel/generic/DRETURN.java
java/org/apache/tomcat/util/bcel/generic/DSTORE.java
java/org/apache/tomcat/util/bcel/generic/DSUB.java
java/org/apache/tomcat/util/bcel/generic/DUP.java
java/org/apache/tomcat/util/bcel/generic/DUP2.java
java/org/apache/tomcat/util/bcel/generic/DUP2_X1.java
java/org/apache/tomcat/util/bcel/generic/DUP2_X2.java
java/org/apache/tomcat/util/bcel/generic/DUP_X1.java
java/org/apache/tomcat/util/bcel/generic/DUP_X2.java
java/org/apache/tomcat/util/bcel/generic/EmptyVisitor.java [deleted file]
java/org/apache/tomcat/util/bcel/generic/F2D.java
java/org/apache/tomcat/util/bcel/generic/F2I.java
java/org/apache/tomcat/util/bcel/generic/F2L.java
java/org/apache/tomcat/util/bcel/generic/FADD.java
java/org/apache/tomcat/util/bcel/generic/FALOAD.java
java/org/apache/tomcat/util/bcel/generic/FASTORE.java
java/org/apache/tomcat/util/bcel/generic/FCMPG.java
java/org/apache/tomcat/util/bcel/generic/FCMPL.java
java/org/apache/tomcat/util/bcel/generic/FCONST.java
java/org/apache/tomcat/util/bcel/generic/FDIV.java
java/org/apache/tomcat/util/bcel/generic/FLOAD.java
java/org/apache/tomcat/util/bcel/generic/FMUL.java
java/org/apache/tomcat/util/bcel/generic/FNEG.java
java/org/apache/tomcat/util/bcel/generic/FREM.java
java/org/apache/tomcat/util/bcel/generic/FRETURN.java
java/org/apache/tomcat/util/bcel/generic/FSTORE.java
java/org/apache/tomcat/util/bcel/generic/FSUB.java
java/org/apache/tomcat/util/bcel/generic/GETFIELD.java
java/org/apache/tomcat/util/bcel/generic/GETSTATIC.java
java/org/apache/tomcat/util/bcel/generic/GOTO.java
java/org/apache/tomcat/util/bcel/generic/GOTO_W.java
java/org/apache/tomcat/util/bcel/generic/I2B.java
java/org/apache/tomcat/util/bcel/generic/I2C.java
java/org/apache/tomcat/util/bcel/generic/I2D.java
java/org/apache/tomcat/util/bcel/generic/I2F.java
java/org/apache/tomcat/util/bcel/generic/I2L.java
java/org/apache/tomcat/util/bcel/generic/I2S.java
java/org/apache/tomcat/util/bcel/generic/IADD.java
java/org/apache/tomcat/util/bcel/generic/IALOAD.java
java/org/apache/tomcat/util/bcel/generic/IAND.java
java/org/apache/tomcat/util/bcel/generic/IASTORE.java
java/org/apache/tomcat/util/bcel/generic/ICONST.java
java/org/apache/tomcat/util/bcel/generic/IDIV.java
java/org/apache/tomcat/util/bcel/generic/IFEQ.java
java/org/apache/tomcat/util/bcel/generic/IFGE.java
java/org/apache/tomcat/util/bcel/generic/IFGT.java
java/org/apache/tomcat/util/bcel/generic/IFLE.java
java/org/apache/tomcat/util/bcel/generic/IFLT.java
java/org/apache/tomcat/util/bcel/generic/IFNE.java
java/org/apache/tomcat/util/bcel/generic/IFNONNULL.java
java/org/apache/tomcat/util/bcel/generic/IFNULL.java
java/org/apache/tomcat/util/bcel/generic/IF_ACMPEQ.java
java/org/apache/tomcat/util/bcel/generic/IF_ACMPNE.java
java/org/apache/tomcat/util/bcel/generic/IF_ICMPEQ.java
java/org/apache/tomcat/util/bcel/generic/IF_ICMPGE.java
java/org/apache/tomcat/util/bcel/generic/IF_ICMPGT.java
java/org/apache/tomcat/util/bcel/generic/IF_ICMPLE.java
java/org/apache/tomcat/util/bcel/generic/IF_ICMPLT.java
java/org/apache/tomcat/util/bcel/generic/IF_ICMPNE.java
java/org/apache/tomcat/util/bcel/generic/IINC.java
java/org/apache/tomcat/util/bcel/generic/ILOAD.java
java/org/apache/tomcat/util/bcel/generic/IMPDEP1.java
java/org/apache/tomcat/util/bcel/generic/IMPDEP2.java
java/org/apache/tomcat/util/bcel/generic/IMUL.java
java/org/apache/tomcat/util/bcel/generic/INEG.java
java/org/apache/tomcat/util/bcel/generic/INSTANCEOF.java
java/org/apache/tomcat/util/bcel/generic/INVOKEINTERFACE.java
java/org/apache/tomcat/util/bcel/generic/INVOKESPECIAL.java
java/org/apache/tomcat/util/bcel/generic/INVOKESTATIC.java
java/org/apache/tomcat/util/bcel/generic/INVOKEVIRTUAL.java
java/org/apache/tomcat/util/bcel/generic/IOR.java
java/org/apache/tomcat/util/bcel/generic/IREM.java
java/org/apache/tomcat/util/bcel/generic/IRETURN.java
java/org/apache/tomcat/util/bcel/generic/ISHL.java
java/org/apache/tomcat/util/bcel/generic/ISHR.java
java/org/apache/tomcat/util/bcel/generic/ISTORE.java
java/org/apache/tomcat/util/bcel/generic/ISUB.java
java/org/apache/tomcat/util/bcel/generic/IUSHR.java
java/org/apache/tomcat/util/bcel/generic/IXOR.java
java/org/apache/tomcat/util/bcel/generic/Instruction.java
java/org/apache/tomcat/util/bcel/generic/InstructionHandle.java
java/org/apache/tomcat/util/bcel/generic/JSR.java
java/org/apache/tomcat/util/bcel/generic/JSR_W.java
java/org/apache/tomcat/util/bcel/generic/L2D.java
java/org/apache/tomcat/util/bcel/generic/L2F.java
java/org/apache/tomcat/util/bcel/generic/L2I.java
java/org/apache/tomcat/util/bcel/generic/LADD.java
java/org/apache/tomcat/util/bcel/generic/LALOAD.java
java/org/apache/tomcat/util/bcel/generic/LAND.java
java/org/apache/tomcat/util/bcel/generic/LASTORE.java
java/org/apache/tomcat/util/bcel/generic/LCMP.java
java/org/apache/tomcat/util/bcel/generic/LCONST.java
java/org/apache/tomcat/util/bcel/generic/LDC.java
java/org/apache/tomcat/util/bcel/generic/LDC2_W.java
java/org/apache/tomcat/util/bcel/generic/LDIV.java
java/org/apache/tomcat/util/bcel/generic/LLOAD.java
java/org/apache/tomcat/util/bcel/generic/LMUL.java
java/org/apache/tomcat/util/bcel/generic/LNEG.java
java/org/apache/tomcat/util/bcel/generic/LOOKUPSWITCH.java
java/org/apache/tomcat/util/bcel/generic/LOR.java
java/org/apache/tomcat/util/bcel/generic/LREM.java
java/org/apache/tomcat/util/bcel/generic/LRETURN.java
java/org/apache/tomcat/util/bcel/generic/LSHL.java
java/org/apache/tomcat/util/bcel/generic/LSHR.java
java/org/apache/tomcat/util/bcel/generic/LSTORE.java
java/org/apache/tomcat/util/bcel/generic/LSUB.java
java/org/apache/tomcat/util/bcel/generic/LUSHR.java
java/org/apache/tomcat/util/bcel/generic/LXOR.java
java/org/apache/tomcat/util/bcel/generic/LoadInstruction.java
java/org/apache/tomcat/util/bcel/generic/MONITORENTER.java
java/org/apache/tomcat/util/bcel/generic/MONITOREXIT.java
java/org/apache/tomcat/util/bcel/generic/MULTIANEWARRAY.java
java/org/apache/tomcat/util/bcel/generic/NEW.java
java/org/apache/tomcat/util/bcel/generic/NEWARRAY.java
java/org/apache/tomcat/util/bcel/generic/NOP.java
java/org/apache/tomcat/util/bcel/generic/POP.java
java/org/apache/tomcat/util/bcel/generic/POP2.java
java/org/apache/tomcat/util/bcel/generic/PUTFIELD.java
java/org/apache/tomcat/util/bcel/generic/PUTSTATIC.java
java/org/apache/tomcat/util/bcel/generic/RET.java
java/org/apache/tomcat/util/bcel/generic/RETURN.java
java/org/apache/tomcat/util/bcel/generic/SALOAD.java
java/org/apache/tomcat/util/bcel/generic/SASTORE.java
java/org/apache/tomcat/util/bcel/generic/SIPUSH.java
java/org/apache/tomcat/util/bcel/generic/SWAP.java
java/org/apache/tomcat/util/bcel/generic/StoreInstruction.java
java/org/apache/tomcat/util/bcel/generic/TABLESWITCH.java
java/org/apache/tomcat/util/bcel/generic/Visitor.java [deleted file]
java/org/apache/tomcat/util/bcel/util/BCELFactory.java [deleted file]
java/org/apache/tomcat/util/bcel/util/BCELifier.java [deleted file]

diff --git a/java/org/apache/tomcat/util/bcel/classfile/EmptyVisitor.java b/java/org/apache/tomcat/util/bcel/classfile/EmptyVisitor.java
deleted file mode 100644 (file)
index 5a1d861..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
- * Copyright  2000-2009 The Apache Software Foundation
- *
- *  Licensed under the Apache License, Version 2.0 (the "License"); 
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License. 
- *
- */
-package org.apache.tomcat.util.bcel.classfile;
-
-/**
- * Visitor with empty method bodies, can be extended and used in conjunction
- * with the DescendingVisitor class, e.g. By courtesy of David Spencer.
- * 
- * @see DescendingVisitor
- * @version $Id$
- */
-public class EmptyVisitor implements Visitor
-{
-       protected EmptyVisitor()
-       {
-       }
-
-       public void visitAnnotation(Annotations obj)
-       {
-       }
-
-       public void visitParameterAnnotation(ParameterAnnotations obj)
-       {
-       }
-
-       public void visitAnnotationEntry(AnnotationEntry obj)
-       {
-       }
-
-       public void visitAnnotationDefault(AnnotationDefault obj)
-       {
-       }
-
-       public void visitCode(Code obj)
-       {
-       }
-
-       public void visitCodeException(CodeException obj)
-       {
-       }
-
-       public void visitConstantClass(ConstantClass obj)
-       {
-       }
-
-       public void visitConstantDouble(ConstantDouble obj)
-       {
-       }
-
-       public void visitConstantFieldref(ConstantFieldref obj)
-       {
-       }
-
-       public void visitConstantFloat(ConstantFloat obj)
-       {
-       }
-
-       public void visitConstantInteger(ConstantInteger obj)
-       {
-       }
-
-       public void visitConstantInterfaceMethodref(ConstantInterfaceMethodref obj)
-       {
-       }
-
-       public void visitConstantLong(ConstantLong obj)
-       {
-       }
-
-       public void visitConstantMethodref(ConstantMethodref obj)
-       {
-       }
-
-       public void visitConstantNameAndType(ConstantNameAndType obj)
-       {
-       }
-
-       public void visitConstantPool(ConstantPool obj)
-       {
-       }
-
-       public void visitConstantString(ConstantString obj)
-       {
-       }
-
-       public void visitConstantUtf8(ConstantUtf8 obj)
-       {
-       }
-
-       public void visitConstantValue(ConstantValue obj)
-       {
-       }
-
-       public void visitDeprecated(Deprecated obj)
-       {
-       }
-
-       public void visitExceptionTable(ExceptionTable obj)
-       {
-       }
-
-       public void visitField(Field obj)
-       {
-       }
-
-       public void visitInnerClass(InnerClass obj)
-       {
-       }
-
-       public void visitInnerClasses(InnerClasses obj)
-       {
-       }
-
-       public void visitJavaClass(JavaClass obj)
-       {
-       }
-
-       public void visitLineNumber(LineNumber obj)
-       {
-       }
-
-       public void visitLineNumberTable(LineNumberTable obj)
-       {
-       }
-
-       public void visitLocalVariable(LocalVariable obj)
-       {
-       }
-
-       public void visitLocalVariableTable(LocalVariableTable obj)
-       {
-       }
-
-       public void visitMethod(Method obj)
-       {
-       }
-
-       public void visitSignature(Signature obj)
-       {
-       }
-
-       public void visitSourceFile(SourceFile obj)
-       {
-       }
-
-       public void visitSynthetic(Synthetic obj)
-       {
-       }
-
-       public void visitUnknown(Unknown obj)
-       {
-       }
-
-       public void visitStackMap(StackMap obj)
-       {
-       }
-
-       public void visitStackMapEntry(StackMapEntry obj)
-       {
-       }
-
-       public void visitStackMapTable(StackMapTable obj)
-       {
-       }
-
-       public void visitStackMapTableEntry(StackMapTableEntry obj)
-       {
-       }
-
-       public void visitEnclosingMethod(EnclosingMethod obj)
-       {
-       }
-
-       public void visitLocalVariableTypeTable(LocalVariableTypeTable obj)
-       {
-       }
-}
index a5a6e84..d5910c0 100644 (file)
@@ -30,21 +30,4 @@ public class AALOAD extends ArrayInstruction implements StackProducer {
     public AALOAD() {
         super(org.apache.tomcat.util.bcel.Constants.AALOAD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitAALOAD(this);
-    }
 }
index 71534ff..45b9fca 100644 (file)
@@ -30,21 +30,4 @@ public class AASTORE extends ArrayInstruction implements StackConsumer {
     public AASTORE() {
         super(org.apache.tomcat.util.bcel.Constants.AASTORE);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitAASTORE(this);
-    }
 }
index 6b68d0e..ac8ece4 100644 (file)
@@ -38,20 +38,4 @@ public class ACONST_NULL extends Instruction implements PushInstruction, TypedIn
     public Type getType( ConstantPoolGen cp ) {
         return Type.NULL;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitPushInstruction(this);
-        v.visitTypedInstruction(this);
-        v.visitACONST_NULL(this);
-    }
 }
index 8103368..0bdba03 100644 (file)
@@ -40,18 +40,4 @@ public class ALOAD extends LoadInstruction {
     public ALOAD(int n) {
         super(org.apache.tomcat.util.bcel.Constants.ALOAD, org.apache.tomcat.util.bcel.Constants.ALOAD_0, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        super.accept(v);
-        v.visitALOAD(this);
-    }
 }
index a359277..a6c46a8 100644 (file)
@@ -50,25 +50,6 @@ public class ANEWARRAY extends CPInstruction implements LoadClass, AllocationIns
     }
 
 
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitLoadClass(this);
-        v.visitAllocationInstruction(this);
-        v.visitExceptionThrower(this);
-        v.visitStackProducer(this);
-        v.visitTypedInstruction(this);
-        v.visitCPInstruction(this);
-        v.visitANEWARRAY(this);
-    }
-
-
     public ObjectType getLoadClassType( ConstantPoolGen cpg ) {
         Type t = getType(cpg);
         if (t instanceof ArrayType) {
index b31ca25..e8c6597 100644 (file)
@@ -31,21 +31,4 @@ public class ARETURN extends ReturnInstruction {
     public ARETURN() {
         super(org.apache.tomcat.util.bcel.Constants.ARETURN);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackConsumer(this);
-        v.visitReturnInstruction(this);
-        v.visitARETURN(this);
-    }
 }
index 11592ff..fb2840c 100644 (file)
@@ -39,19 +39,4 @@ public class ARRAYLENGTH extends Instruction implements ExceptionThrower, StackP
             org.apache.tomcat.util.bcel.ExceptionConstants.NULL_POINTER_EXCEPTION
         };
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitStackProducer(this);
-        v.visitARRAYLENGTH(this);
-    }
 }
index 43582b7..5b6ec5b 100644 (file)
@@ -40,18 +40,4 @@ public class ASTORE extends StoreInstruction {
     public ASTORE(int n) {
         super(org.apache.tomcat.util.bcel.Constants.ASTORE, org.apache.tomcat.util.bcel.Constants.ASTORE_0, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        super.accept(v);
-        v.visitASTORE(this);
-    }
 }
index e187d5b..daff3dc 100644 (file)
@@ -40,19 +40,4 @@ public class ATHROW extends Instruction implements UnconditionalBranch, Exceptio
             org.apache.tomcat.util.bcel.ExceptionConstants.THROWABLE
         };
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitUnconditionalBranch(this);
-        v.visitExceptionThrower(this);
-        v.visitATHROW(this);
-    }
 }
index 38d9c7b..5351d8f 100644 (file)
@@ -30,21 +30,4 @@ public class BALOAD extends ArrayInstruction implements StackProducer {
     public BALOAD() {
         super(org.apache.tomcat.util.bcel.Constants.BALOAD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitBALOAD(this);
-    }
 }
index 09726a4..9b92380 100644 (file)
@@ -30,21 +30,4 @@ public class BASTORE extends ArrayInstruction implements StackConsumer {
     public BASTORE() {
         super(org.apache.tomcat.util.bcel.Constants.BASTORE);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitBASTORE(this);
-    }
 }
index a9474a9..dce4dcd 100644 (file)
@@ -85,21 +85,4 @@ public class BIPUSH extends Instruction implements ConstantPushInstruction {
     public Type getType( ConstantPoolGen cp ) {
         return Type.BYTE;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitPushInstruction(this);
-        v.visitStackProducer(this);
-        v.visitTypedInstruction(this);
-        v.visitConstantPushInstruction(this);
-        v.visitBIPUSH(this);
-    }
 }
index f3454bf..5dcaed8 100644 (file)
@@ -27,17 +27,4 @@ public class BREAKPOINT extends Instruction {
     public BREAKPOINT() {
         super(org.apache.tomcat.util.bcel.Constants.BREAKPOINT, (short) 1);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitBREAKPOINT(this);
-    }
 }
index e777965..1152bea 100644 (file)
@@ -30,21 +30,4 @@ public class CALOAD extends ArrayInstruction implements StackProducer {
     public CALOAD() {
         super(org.apache.tomcat.util.bcel.Constants.CALOAD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitCALOAD(this);
-    }
 }
index 060f35b..56b82e0 100644 (file)
@@ -30,21 +30,4 @@ public class CASTORE extends ArrayInstruction implements StackConsumer {
     public CASTORE() {
         super(org.apache.tomcat.util.bcel.Constants.CASTORE);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitCASTORE(this);
-    }
 }
index 181a3c0..633c980 100644 (file)
@@ -62,23 +62,4 @@ public class CHECKCAST extends CPInstruction implements LoadClass, ExceptionThro
         }
         return (t instanceof ObjectType) ? (ObjectType) t : null;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitLoadClass(this);
-        v.visitExceptionThrower(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitTypedInstruction(this);
-        v.visitCPInstruction(this);
-        v.visitCHECKCAST(this);
-    }
 }
index b3fc355..05ab5d0 100644 (file)
@@ -30,21 +30,4 @@ public class D2F extends ConversionInstruction {
     public D2F() {
         super(org.apache.tomcat.util.bcel.Constants.D2F);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitD2F(this);
-    }
 }
index d78ed37..e02a82a 100644 (file)
@@ -30,21 +30,4 @@ public class D2I extends ConversionInstruction {
     public D2I() {
         super(org.apache.tomcat.util.bcel.Constants.D2I);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitD2I(this);
-    }
 }
index 6b4c8c1..74c226a 100644 (file)
@@ -30,21 +30,4 @@ public class D2L extends ConversionInstruction {
     public D2L() {
         super(org.apache.tomcat.util.bcel.Constants.D2L);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitD2L(this);
-    }
 }
index 0edba76..cc9d191 100644 (file)
@@ -31,21 +31,4 @@ public class DADD extends ArithmeticInstruction {
     public DADD() {
         super(org.apache.tomcat.util.bcel.Constants.DADD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitDADD(this);
-    }
 }
index 1c31541..61f47f6 100644 (file)
@@ -30,21 +30,4 @@ public class DALOAD extends ArrayInstruction implements StackProducer {
     public DALOAD() {
         super(org.apache.tomcat.util.bcel.Constants.DALOAD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitDALOAD(this);
-    }
 }
index 0bacc71..0e28a7d 100644 (file)
@@ -30,21 +30,4 @@ public class DASTORE extends ArrayInstruction implements StackConsumer {
     public DASTORE() {
         super(org.apache.tomcat.util.bcel.Constants.DASTORE);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitDASTORE(this);
-    }
 }
index 0e9aca5..2463362 100644 (file)
@@ -36,20 +36,4 @@ public class DCMPG extends Instruction implements TypedInstruction, StackProduce
     public Type getType( ConstantPoolGen cp ) {
         return Type.DOUBLE;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitDCMPG(this);
-    }
 }
index 4ce1572..2d33d4c 100644 (file)
@@ -36,20 +36,4 @@ public class DCMPL extends Instruction implements TypedInstruction, StackProduce
     public Type getType( ConstantPoolGen cp ) {
         return Type.DOUBLE;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitDCMPL(this);
-    }
 }
index 00fc1f9..26ac18f 100644 (file)
@@ -60,21 +60,4 @@ public class DCONST extends Instruction implements ConstantPushInstruction, Type
     public Type getType( ConstantPoolGen cp ) {
         return Type.DOUBLE;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitPushInstruction(this);
-        v.visitStackProducer(this);
-        v.visitTypedInstruction(this);
-        v.visitConstantPushInstruction(this);
-        v.visitDCONST(this);
-    }
 }
index 72df390..694602b 100644 (file)
@@ -31,21 +31,4 @@ public class DDIV extends ArithmeticInstruction {
     public DDIV() {
         super(org.apache.tomcat.util.bcel.Constants.DDIV);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitDDIV(this);
-    }
 }
index 649f13c..21c3d3a 100644 (file)
@@ -40,18 +40,4 @@ public class DLOAD extends LoadInstruction {
     public DLOAD(int n) {
         super(org.apache.tomcat.util.bcel.Constants.DLOAD, org.apache.tomcat.util.bcel.Constants.DLOAD_0, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        super.accept(v);
-        v.visitDLOAD(this);
-    }
 }
index 99d78b7..f22523e 100644 (file)
@@ -31,21 +31,4 @@ public class DMUL extends ArithmeticInstruction {
     public DMUL() {
         super(org.apache.tomcat.util.bcel.Constants.DMUL);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitDMUL(this);
-    }
 }
index 51da499..eb59ac1 100644 (file)
@@ -28,21 +28,4 @@ public class DNEG extends ArithmeticInstruction {
     public DNEG() {
         super(org.apache.tomcat.util.bcel.Constants.DNEG);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitDNEG(this);
-    }
 }
index a6e03c0..8b36690 100644 (file)
@@ -31,21 +31,4 @@ public class DREM extends ArithmeticInstruction {
     public DREM() {
         super(org.apache.tomcat.util.bcel.Constants.DREM);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitDREM(this);
-    }
 }
index 23b12ba..b78fe83 100644 (file)
@@ -30,21 +30,4 @@ public class DRETURN extends ReturnInstruction {
     public DRETURN() {
         super(org.apache.tomcat.util.bcel.Constants.DRETURN);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackConsumer(this);
-        v.visitReturnInstruction(this);
-        v.visitDRETURN(this);
-    }
 }
index f24f51c..acf573a 100644 (file)
@@ -40,18 +40,4 @@ public class DSTORE extends StoreInstruction {
     public DSTORE(int n) {
         super(org.apache.tomcat.util.bcel.Constants.DSTORE, org.apache.tomcat.util.bcel.Constants.DSTORE_0, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        super.accept(v);
-        v.visitDSTORE(this);
-    }
 }
index 6ae95df..f020f3d 100644 (file)
@@ -31,21 +31,4 @@ public class DSUB extends ArithmeticInstruction {
     public DSUB() {
         super(org.apache.tomcat.util.bcel.Constants.DSUB);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitDSUB(this);
-    }
 }
index 44bbfc8..10967bb 100644 (file)
@@ -28,20 +28,4 @@ public class DUP extends StackInstruction implements PushInstruction {
     public DUP() {
         super(org.apache.tomcat.util.bcel.Constants.DUP);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitPushInstruction(this);
-        v.visitStackInstruction(this);
-        v.visitDUP(this);
-    }
 }
index 55cc50b..16090aa 100644 (file)
@@ -28,20 +28,4 @@ public class DUP2 extends StackInstruction implements PushInstruction {
     public DUP2() {
         super(org.apache.tomcat.util.bcel.Constants.DUP2);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitPushInstruction(this);
-        v.visitStackInstruction(this);
-        v.visitDUP2(this);
-    }
 }
index 70fb1b9..6309cad 100644 (file)
@@ -28,18 +28,4 @@ public class DUP2_X1 extends StackInstruction {
     public DUP2_X1() {
         super(org.apache.tomcat.util.bcel.Constants.DUP2_X1);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackInstruction(this);
-        v.visitDUP2_X1(this);
-    }
 }
index 1348268..c528e08 100644 (file)
@@ -28,18 +28,4 @@ public class DUP2_X2 extends StackInstruction {
     public DUP2_X2() {
         super(org.apache.tomcat.util.bcel.Constants.DUP2_X2);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackInstruction(this);
-        v.visitDUP2_X2(this);
-    }
 }
index f0dbcb3..c33f725 100644 (file)
@@ -28,18 +28,4 @@ public class DUP_X1 extends StackInstruction {
     public DUP_X1() {
         super(org.apache.tomcat.util.bcel.Constants.DUP_X1);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackInstruction(this);
-        v.visitDUP_X1(this);
-    }
 }
index 4ff230c..255ea26 100644 (file)
@@ -28,18 +28,4 @@ public class DUP_X2 extends StackInstruction {
     public DUP_X2() {
         super(org.apache.tomcat.util.bcel.Constants.DUP_X2);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackInstruction(this);
-        v.visitDUP_X2(this);
-    }
 }
diff --git a/java/org/apache/tomcat/util/bcel/generic/EmptyVisitor.java b/java/org/apache/tomcat/util/bcel/generic/EmptyVisitor.java
deleted file mode 100644 (file)
index 52507d5..0000000
+++ /dev/null
@@ -1,745 +0,0 @@
-/*
- * Copyright  2000-2009 The Apache Software Foundation
- *
- *  Licensed under the Apache License, Version 2.0 (the "License"); 
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License. 
- *
- */
-package org.apache.tomcat.util.bcel.generic;
-
-/**
- * Supplies empty method bodies to be overridden by subclasses.
- *
- * @version $Id$
- * @author  <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
- */
-public abstract class EmptyVisitor implements 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 visitJsrInstruction( JsrInstruction obj ) {
-    }
-
-
-    public void visitGotoInstruction( GotoInstruction obj ) {
-    }
-
-
-    public void visitStoreInstruction( StoreInstruction obj ) {
-    }
-
-
-    public void visitTypedInstruction( TypedInstruction obj ) {
-    }
-
-
-    public void visitSelect( Select 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 ) {
-    }
-}
index d65deed..4bcaeaf 100644 (file)
@@ -30,21 +30,4 @@ public class F2D extends ConversionInstruction {
     public F2D() {
         super(org.apache.tomcat.util.bcel.Constants.F2D);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitF2D(this);
-    }
 }
index 4d19be9..f3199eb 100644 (file)
@@ -30,21 +30,4 @@ public class F2I extends ConversionInstruction {
     public F2I() {
         super(org.apache.tomcat.util.bcel.Constants.F2I);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitF2I(this);
-    }
 }
index d102be2..c3f1ee5 100644 (file)
@@ -30,21 +30,4 @@ public class F2L extends ConversionInstruction {
     public F2L() {
         super(org.apache.tomcat.util.bcel.Constants.F2L);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitF2L(this);
-    }
 }
index 464c8d8..a56fde9 100644 (file)
@@ -30,21 +30,4 @@ public class FADD extends ArithmeticInstruction {
     public FADD() {
         super(org.apache.tomcat.util.bcel.Constants.FADD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitFADD(this);
-    }
 }
index 3f9daa5..45b4d64 100644 (file)
@@ -30,21 +30,4 @@ public class FALOAD extends ArrayInstruction implements StackProducer {
     public FALOAD() {
         super(org.apache.tomcat.util.bcel.Constants.FALOAD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitFALOAD(this);
-    }
 }
index d4691fa..7f8b330 100644 (file)
@@ -30,21 +30,4 @@ public class FASTORE extends ArrayInstruction implements StackConsumer {
     public FASTORE() {
         super(org.apache.tomcat.util.bcel.Constants.FASTORE);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitFASTORE(this);
-    }
 }
index 3e1f3ca..2ae4b36 100644 (file)
@@ -35,20 +35,4 @@ public class FCMPG extends Instruction implements TypedInstruction, StackProduce
     public Type getType( ConstantPoolGen cp ) {
         return Type.FLOAT;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitFCMPG(this);
-    }
 }
index 3006180..3415236 100644 (file)
@@ -35,20 +35,4 @@ public class FCMPL extends Instruction implements TypedInstruction, StackProduce
     public Type getType( ConstantPoolGen cp ) {
         return Type.FLOAT;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitFCMPL(this);
-    }
 }
index ffa6123..c8c08c2 100644 (file)
@@ -62,21 +62,4 @@ public class FCONST extends Instruction implements ConstantPushInstruction, Type
     public Type getType( ConstantPoolGen cp ) {
         return Type.FLOAT;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitPushInstruction(this);
-        v.visitStackProducer(this);
-        v.visitTypedInstruction(this);
-        v.visitConstantPushInstruction(this);
-        v.visitFCONST(this);
-    }
 }
index aaec456..6e05a41 100644 (file)
@@ -30,21 +30,4 @@ public class FDIV extends ArithmeticInstruction {
     public FDIV() {
         super(org.apache.tomcat.util.bcel.Constants.FDIV);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitFDIV(this);
-    }
 }
index 007bae1..298dcf7 100644 (file)
@@ -40,18 +40,4 @@ public class FLOAD extends LoadInstruction {
     public FLOAD(int n) {
         super(org.apache.tomcat.util.bcel.Constants.FLOAD, org.apache.tomcat.util.bcel.Constants.FLOAD_0, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        super.accept(v);
-        v.visitFLOAD(this);
-    }
 }
index e0c786f..cfef64c 100644 (file)
@@ -30,21 +30,4 @@ public class FMUL extends ArithmeticInstruction {
     public FMUL() {
         super(org.apache.tomcat.util.bcel.Constants.FMUL);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitFMUL(this);
-    }
 }
index 56aeb31..6ca9910 100644 (file)
@@ -28,21 +28,4 @@ public class FNEG extends ArithmeticInstruction {
     public FNEG() {
         super(org.apache.tomcat.util.bcel.Constants.FNEG);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitFNEG(this);
-    }
 }
index 2f3e836..d13011f 100644 (file)
@@ -30,21 +30,4 @@ public class FREM extends ArithmeticInstruction {
     public FREM() {
         super(org.apache.tomcat.util.bcel.Constants.FREM);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitFREM(this);
-    }
 }
index db49cbf..ecbf2d5 100644 (file)
@@ -30,21 +30,4 @@ public class FRETURN extends ReturnInstruction {
     public FRETURN() {
         super(org.apache.tomcat.util.bcel.Constants.FRETURN);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackConsumer(this);
-        v.visitReturnInstruction(this);
-        v.visitFRETURN(this);
-    }
 }
index f3b52c0..869c4a6 100644 (file)
@@ -40,18 +40,4 @@ public class FSTORE extends StoreInstruction {
     public FSTORE(int n) {
         super(org.apache.tomcat.util.bcel.Constants.FSTORE, org.apache.tomcat.util.bcel.Constants.FSTORE_0, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        super.accept(v);
-        v.visitFSTORE(this);
-    }
 }
index c496bfa..3fc84c2 100644 (file)
@@ -30,21 +30,4 @@ public class FSUB extends ArithmeticInstruction {
     public FSUB() {
         super(org.apache.tomcat.util.bcel.Constants.FSUB);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitFSUB(this);
-    }
 }
index 22c29fd..ae5f913 100644 (file)
@@ -57,25 +57,4 @@ public class GETFIELD extends FieldInstruction implements ExceptionThrower, Stac
         cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length] = ExceptionConstants.NULL_POINTER_EXCEPTION;
         return cs;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitStackConsumer(this);
-        v.visitStackProducer(this);
-        v.visitTypedInstruction(this);
-        v.visitLoadClass(this);
-        v.visitCPInstruction(this);
-        v.visitFieldOrMethod(this);
-        v.visitFieldInstruction(this);
-        v.visitGETFIELD(this);
-    }
 }
index aab6f17..b7738ae 100644 (file)
@@ -55,25 +55,4 @@ public class GETSTATIC extends FieldInstruction implements PushInstruction, Exce
         cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length] = ExceptionConstants.INCOMPATIBLE_CLASS_CHANGE_ERROR;
         return cs;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitPushInstruction(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitLoadClass(this);
-        v.visitCPInstruction(this);
-        v.visitFieldOrMethod(this);
-        v.visitFieldInstruction(this);
-        v.visitGETSTATIC(this);
-    }
 }
index f7484b5..275a5f9 100644 (file)
@@ -69,21 +69,4 @@ public class GOTO extends GotoInstruction implements VariableLengthInstruction {
         }
         return 0;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitVariableLengthInstruction(this);
-        v.visitUnconditionalBranch(this);
-        v.visitBranchInstruction(this);
-        v.visitGotoInstruction(this);
-        v.visitGOTO(this);
-    }
 }
index 0e38a74..b7546cf 100644 (file)
@@ -60,20 +60,4 @@ public class GOTO_W extends GotoInstruction {
         index = bytes.readInt();
         length = 5;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitUnconditionalBranch(this);
-        v.visitBranchInstruction(this);
-        v.visitGotoInstruction(this);
-        v.visitGOTO_W(this);
-    }
 }
index c7ca710..e463733 100644 (file)
@@ -30,21 +30,4 @@ public class I2B extends ConversionInstruction {
     public I2B() {
         super(org.apache.tomcat.util.bcel.Constants.I2B);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitI2B(this);
-    }
 }
index f6feaf2..45b35b4 100644 (file)
@@ -30,21 +30,4 @@ public class I2C extends ConversionInstruction {
     public I2C() {
         super(org.apache.tomcat.util.bcel.Constants.I2C);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitI2C(this);
-    }
 }
index c1b8807..354a9df 100644 (file)
@@ -30,21 +30,4 @@ public class I2D extends ConversionInstruction {
     public I2D() {
         super(org.apache.tomcat.util.bcel.Constants.I2D);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitI2D(this);
-    }
 }
index e6d3b0c..08415e5 100644 (file)
@@ -30,21 +30,4 @@ public class I2F extends ConversionInstruction {
     public I2F() {
         super(org.apache.tomcat.util.bcel.Constants.I2F);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitI2F(this);
-    }
 }
index df23b7d..1f77f4e 100644 (file)
@@ -30,21 +30,4 @@ public class I2L extends ConversionInstruction {
     public I2L() {
         super(org.apache.tomcat.util.bcel.Constants.I2L);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitI2L(this);
-    }
 }
index 1c45254..48a4769 100644 (file)
@@ -28,21 +28,4 @@ public class I2S extends ConversionInstruction {
     public I2S() {
         super(org.apache.tomcat.util.bcel.Constants.I2S);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitI2S(this);
-    }
 }
index 48f0d85..1b02a92 100644 (file)
@@ -30,21 +30,4 @@ public class IADD extends ArithmeticInstruction {
     public IADD() {
         super(org.apache.tomcat.util.bcel.Constants.IADD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitIADD(this);
-    }
 }
index 9511a28..c07ad8f 100644 (file)
@@ -31,21 +31,4 @@ public class IALOAD extends ArrayInstruction implements StackProducer {
     public IALOAD() {
         super(org.apache.tomcat.util.bcel.Constants.IALOAD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitIALOAD(this);
-    }
 }
index 10c240d..fae85c7 100644 (file)
@@ -28,21 +28,4 @@ public class IAND extends ArithmeticInstruction {
     public IAND() {
         super(org.apache.tomcat.util.bcel.Constants.IAND);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitIAND(this);
-    }
 }
index 1207d6e..860d7ed 100644 (file)
@@ -31,21 +31,4 @@ public class IASTORE extends ArrayInstruction implements StackConsumer {
     public IASTORE() {
         super(org.apache.tomcat.util.bcel.Constants.IASTORE);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitIASTORE(this);
-    }
 }
index 239570c..ad75d29 100644 (file)
@@ -58,21 +58,4 @@ public class ICONST extends Instruction implements ConstantPushInstruction, Type
     public Type getType( ConstantPoolGen cp ) {
         return Type.INT;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitPushInstruction(this);
-        v.visitStackProducer(this);
-        v.visitTypedInstruction(this);
-        v.visitConstantPushInstruction(this);
-        v.visitICONST(this);
-    }
 }
index ec999af..7fb1b07 100644 (file)
@@ -39,22 +39,4 @@ public class IDIV extends ArithmeticInstruction implements ExceptionThrower {
             org.apache.tomcat.util.bcel.ExceptionConstants.ARITHMETIC_EXCEPTION
         };
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitIDIV(this);
-    }
 }
index 334ea9e..21a9078 100644 (file)
@@ -45,20 +45,4 @@ public class IFEQ extends IfInstruction {
     public IfInstruction negate() {
         return new IFNE(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIFEQ(this);
-    }
 }
index 2fdb428..65098ba 100644 (file)
@@ -45,20 +45,4 @@ public class IFGE extends IfInstruction {
     public IfInstruction negate() {
         return new IFLT(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIFGE(this);
-    }
 }
index 0d94ac7..6f800d0 100644 (file)
@@ -45,20 +45,4 @@ public class IFGT extends IfInstruction {
     public IfInstruction negate() {
         return new IFLE(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIFGT(this);
-    }
 }
index c59da8c..160f8bb 100644 (file)
@@ -45,20 +45,4 @@ public class IFLE extends IfInstruction {
     public IfInstruction negate() {
         return new IFGT(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIFLE(this);
-    }
 }
index 560bf9b..88677ee 100644 (file)
@@ -45,20 +45,4 @@ public class IFLT extends IfInstruction {
     public IfInstruction negate() {
         return new IFGE(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIFLT(this);
-    }
 }
index f32bb7f..eaa9463 100644 (file)
@@ -45,20 +45,4 @@ public class IFNE extends IfInstruction {
     public IfInstruction negate() {
         return new IFEQ(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIFNE(this);
-    }
 }
index 1248d0d..ae11e66 100644 (file)
@@ -45,20 +45,4 @@ public class IFNONNULL extends IfInstruction {
     public IfInstruction negate() {
         return new IFNULL(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIFNONNULL(this);
-    }
 }
index 80e9387..9c244bd 100644 (file)
@@ -45,20 +45,4 @@ public class IFNULL extends IfInstruction {
     public IfInstruction negate() {
         return new IFNONNULL(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIFNULL(this);
-    }
 }
index 8b05276..8ce1b29 100644 (file)
@@ -45,20 +45,4 @@ public class IF_ACMPEQ extends IfInstruction {
     public IfInstruction negate() {
         return new IF_ACMPNE(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIF_ACMPEQ(this);
-    }
 }
index 02f821d..08776f3 100644 (file)
@@ -45,20 +45,4 @@ public class IF_ACMPNE extends IfInstruction {
     public IfInstruction negate() {
         return new IF_ACMPEQ(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIF_ACMPNE(this);
-    }
 }
index b8822da..02227dd 100644 (file)
@@ -45,20 +45,4 @@ public class IF_ICMPEQ extends IfInstruction {
     public IfInstruction negate() {
         return new IF_ICMPNE(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIF_ICMPEQ(this);
-    }
 }
index b24fd77..383b940 100644 (file)
@@ -45,20 +45,4 @@ public class IF_ICMPGE extends IfInstruction {
     public IfInstruction negate() {
         return new IF_ICMPLT(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIF_ICMPGE(this);
-    }
 }
index 580311c..f1c817e 100644 (file)
@@ -45,20 +45,4 @@ public class IF_ICMPGT extends IfInstruction {
     public IfInstruction negate() {
         return new IF_ICMPLE(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIF_ICMPGT(this);
-    }
 }
index 1caa276..caf7616 100644 (file)
@@ -45,20 +45,4 @@ public class IF_ICMPLE extends IfInstruction {
     public IfInstruction negate() {
         return new IF_ICMPGT(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIF_ICMPLE(this);
-    }
 }
index b5cf633..6ff23c0 100644 (file)
@@ -45,20 +45,4 @@ public class IF_ICMPLT extends IfInstruction {
     public IfInstruction negate() {
         return new IF_ICMPGE(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIF_ICMPLT(this);
-    }
 }
index 5852e82..f0a9172 100644 (file)
@@ -45,20 +45,4 @@ public class IF_ICMPNE extends IfInstruction {
     public IfInstruction negate() {
         return new IF_ICMPEQ(target);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitBranchInstruction(this);
-        v.visitIfInstruction(this);
-        v.visitIF_ICMPNE(this);
-    }
 }
index 4d62e1e..cba2ebf 100644 (file)
@@ -141,18 +141,4 @@ public class IINC extends LocalVariableInstruction {
     public Type getType( ConstantPoolGen cp ) {
         return Type.INT;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitLocalVariableInstruction(this);
-        v.visitIINC(this);
-    }
 }
index 404d6a4..33bbe64 100644 (file)
@@ -40,18 +40,4 @@ public class ILOAD extends LoadInstruction {
     public ILOAD(int n) {
         super(org.apache.tomcat.util.bcel.Constants.ILOAD, org.apache.tomcat.util.bcel.Constants.ILOAD_0, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        super.accept(v);
-        v.visitILOAD(this);
-    }
 }
index 00d2b06..557c7cb 100644 (file)
@@ -27,17 +27,4 @@ public class IMPDEP1 extends Instruction {
     public IMPDEP1() {
         super(org.apache.tomcat.util.bcel.Constants.IMPDEP1, (short) 1);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitIMPDEP1(this);
-    }
 }
index 7b110c1..5469b06 100644 (file)
@@ -27,17 +27,4 @@ public class IMPDEP2 extends Instruction {
     public IMPDEP2() {
         super(org.apache.tomcat.util.bcel.Constants.IMPDEP2, (short) 1);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitIMPDEP2(this);
-    }
 }
index 39e23c6..3d0a801 100644 (file)
@@ -30,21 +30,4 @@ public class IMUL extends ArithmeticInstruction {
     public IMUL() {
         super(org.apache.tomcat.util.bcel.Constants.IMUL);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitIMUL(this);
-    }
 }
index 33a23f0..8096c0b 100644 (file)
@@ -28,21 +28,4 @@ public class INEG extends ArithmeticInstruction {
     public INEG() {
         super(org.apache.tomcat.util.bcel.Constants.INEG);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitINEG(this);
-    }
 }
index 061abf1..edda28b 100644 (file)
@@ -51,23 +51,4 @@ public class INSTANCEOF extends CPInstruction implements LoadClass, ExceptionThr
         }
         return (t instanceof ObjectType) ? (ObjectType) t : null;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitLoadClass(this);
-        v.visitExceptionThrower(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitTypedInstruction(this);
-        v.visitCPInstruction(this);
-        v.visitINSTANCEOF(this);
-    }
 }
index ae9fc81..669dbf0 100644 (file)
@@ -108,25 +108,4 @@ public final class INVOKEINTERFACE extends InvokeInstruction {
         cs[ExceptionConstants.EXCS_INTERFACE_METHOD_RESOLUTION.length] = ExceptionConstants.UNSATISFIED_LINK_ERROR;
         return cs;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackConsumer(this);
-        v.visitStackProducer(this);
-        v.visitLoadClass(this);
-        v.visitCPInstruction(this);
-        v.visitFieldOrMethod(this);
-        v.visitInvokeInstruction(this);
-        v.visitINVOKEINTERFACE(this);
-    }
 }
index 092e5e4..764d371 100644 (file)
@@ -53,25 +53,4 @@ public class INVOKESPECIAL extends InvokeInstruction {
         cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length] = ExceptionConstants.NULL_POINTER_EXCEPTION;
         return cs;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackConsumer(this);
-        v.visitStackProducer(this);
-        v.visitLoadClass(this);
-        v.visitCPInstruction(this);
-        v.visitFieldOrMethod(this);
-        v.visitInvokeInstruction(this);
-        v.visitINVOKESPECIAL(this);
-    }
 }
index 3efbd95..78f252d 100644 (file)
@@ -50,25 +50,4 @@ public class INVOKESTATIC extends InvokeInstruction {
         cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length + 1] = ExceptionConstants.INCOMPATIBLE_CLASS_CHANGE_ERROR;
         return cs;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackConsumer(this);
-        v.visitStackProducer(this);
-        v.visitLoadClass(this);
-        v.visitCPInstruction(this);
-        v.visitFieldOrMethod(this);
-        v.visitInvokeInstruction(this);
-        v.visitINVOKESTATIC(this);
-    }
 }
index 4616936..38eccfb 100644 (file)
@@ -52,25 +52,4 @@ public class INVOKEVIRTUAL extends InvokeInstruction {
         cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length] = ExceptionConstants.NULL_POINTER_EXCEPTION;
         return cs;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackConsumer(this);
-        v.visitStackProducer(this);
-        v.visitLoadClass(this);
-        v.visitCPInstruction(this);
-        v.visitFieldOrMethod(this);
-        v.visitInvokeInstruction(this);
-        v.visitINVOKEVIRTUAL(this);
-    }
 }
index d6cf5cd..fb16d47 100644 (file)
@@ -28,21 +28,4 @@ public class IOR extends ArithmeticInstruction {
     public IOR() {
         super(org.apache.tomcat.util.bcel.Constants.IOR);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitIOR(this);
-    }
 }
index 67b3cac..cc3d00c 100644 (file)
@@ -39,22 +39,4 @@ public class IREM extends ArithmeticInstruction implements ExceptionThrower {
             org.apache.tomcat.util.bcel.ExceptionConstants.ARITHMETIC_EXCEPTION
         };
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitIREM(this);
-    }
 }
index e21b5ac..7520658 100644 (file)
@@ -30,21 +30,4 @@ public class IRETURN extends ReturnInstruction {
     public IRETURN() {
         super(org.apache.tomcat.util.bcel.Constants.IRETURN);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackConsumer(this);
-        v.visitReturnInstruction(this);
-        v.visitIRETURN(this);
-    }
 }
index 516dfb0..66e5194 100644 (file)
@@ -28,21 +28,4 @@ public class ISHL extends ArithmeticInstruction {
     public ISHL() {
         super(org.apache.tomcat.util.bcel.Constants.ISHL);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitISHL(this);
-    }
 }
index d8bbb01..26fa178 100644 (file)
@@ -28,21 +28,4 @@ public class ISHR extends ArithmeticInstruction {
     public ISHR() {
         super(org.apache.tomcat.util.bcel.Constants.ISHR);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitISHR(this);
-    }
 }
index f0a0ca1..9b8d279 100644 (file)
@@ -40,18 +40,4 @@ public class ISTORE extends StoreInstruction {
     public ISTORE(int n) {
         super(org.apache.tomcat.util.bcel.Constants.ISTORE, org.apache.tomcat.util.bcel.Constants.ISTORE_0, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        super.accept(v);
-        v.visitISTORE(this);
-    }
 }
index 67b5a66..c36b61e 100644 (file)
@@ -30,21 +30,4 @@ public class ISUB extends ArithmeticInstruction {
     public ISUB() {
         super(org.apache.tomcat.util.bcel.Constants.ISUB);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitISUB(this);
-    }
 }
index f2bc5b4..28cf19e 100644 (file)
@@ -28,21 +28,4 @@ public class IUSHR extends ArithmeticInstruction {
     public IUSHR() {
         super(org.apache.tomcat.util.bcel.Constants.IUSHR);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitIUSHR(this);
-    }
 }
index d898b16..cc58262 100644 (file)
@@ -28,21 +28,4 @@ public class IXOR extends ArithmeticInstruction {
     public IXOR() {
         super(org.apache.tomcat.util.bcel.Constants.IXOR);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitIXOR(this);
-    }
 }
index e294bf7..ec4d52a 100644 (file)
@@ -511,17 +511,6 @@ public abstract class Instruction implements Cloneable, Serializable {
     }
 
 
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public abstract void accept( Visitor v );
-
-
     /** Get Comparator object used in the equals() method to determine
      * equality of instructions.
      *
index e9423e1..9f6dbc7 100644 (file)
@@ -278,13 +278,4 @@ public class InstructionHandle implements java.io.Serializable {
         }
         return attributes.values();
     }
-
-
-    /** Convenience method, simply calls accept() on the contained instruction.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        instruction.accept(v);
-    }
 }
index 278d558..7f5e2a6 100644 (file)
@@ -66,21 +66,4 @@ public class JSR extends JsrInstruction implements VariableLengthInstruction {
         }
         return 0;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitVariableLengthInstruction(this);
-        v.visitBranchInstruction(this);
-        v.visitJsrInstruction(this);
-        v.visitJSR(this);
-    }
 }
index be0681f..e5870bd 100644 (file)
@@ -60,20 +60,4 @@ public class JSR_W extends JsrInstruction {
         index = bytes.readInt();
         length = 5;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitBranchInstruction(this);
-        v.visitJsrInstruction(this);
-        v.visitJSR_W(this);
-    }
 }
index 4fb62eb..da1a3a5 100644 (file)
@@ -28,21 +28,4 @@ public class L2D extends ConversionInstruction {
     public L2D() {
         super(org.apache.tomcat.util.bcel.Constants.L2D);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitL2D(this);
-    }
 }
index 8c8f982..7952d6b 100644 (file)
@@ -28,21 +28,4 @@ public class L2F extends ConversionInstruction {
     public L2F() {
         super(org.apache.tomcat.util.bcel.Constants.L2F);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitL2F(this);
-    }
 }
index 90d256c..9d5e2c1 100644 (file)
@@ -28,21 +28,4 @@ public class L2I extends ConversionInstruction {
     public L2I() {
         super(org.apache.tomcat.util.bcel.Constants.L2I);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitConversionInstruction(this);
-        v.visitL2I(this);
-    }
 }
index a08481f..c1650b4 100644 (file)
@@ -29,21 +29,4 @@ public class LADD extends ArithmeticInstruction {
     public LADD() {
         super(org.apache.tomcat.util.bcel.Constants.LADD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLADD(this);
-    }
 }
index 64f296a..587a58f 100644 (file)
@@ -30,21 +30,4 @@ public class LALOAD extends ArrayInstruction implements StackProducer {
     public LALOAD() {
         super(org.apache.tomcat.util.bcel.Constants.LALOAD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitLALOAD(this);
-    }
 }
index 7ed48eb..4ca3932 100644 (file)
@@ -29,21 +29,4 @@ public class LAND extends ArithmeticInstruction {
     public LAND() {
         super(org.apache.tomcat.util.bcel.Constants.LAND);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLAND(this);
-    }
 }
index 32de31b..f7f9f20 100644 (file)
@@ -30,21 +30,4 @@ public class LASTORE extends ArrayInstruction implements StackConsumer {
     public LASTORE() {
         super(org.apache.tomcat.util.bcel.Constants.LASTORE);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitLASTORE(this);
-    }
 }
index 3f481e7..50947ea 100644 (file)
@@ -36,20 +36,4 @@ public class LCMP extends Instruction implements TypedInstruction, StackProducer
     public Type getType( ConstantPoolGen cp ) {
         return Type.LONG;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitLCMP(this);
-    }
 }
index 99a3138..407da10 100644 (file)
@@ -60,21 +60,4 @@ public class LCONST extends Instruction implements ConstantPushInstruction, Type
     public Type getType( ConstantPoolGen cp ) {
         return Type.LONG;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitPushInstruction(this);
-        v.visitStackProducer(this);
-        v.visitTypedInstruction(this);
-        v.visitConstantPushInstruction(this);
-        v.visitLCONST(this);
-    }
 }
index 9fae0af..74c61cf 100644 (file)
@@ -127,22 +127,4 @@ public class LDC extends CPInstruction implements PushInstruction, ExceptionThro
     public Class[] getExceptions() {
         return org.apache.tomcat.util.bcel.ExceptionConstants.EXCS_STRING_RESOLUTION;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitPushInstruction(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitCPInstruction(this);
-        v.visitLDC(this);
-    }
 }
index 8cb5811..b55b02f 100644 (file)
@@ -62,21 +62,4 @@ public class LDC2_W extends CPInstruction implements PushInstruction, TypedInstr
                 throw new RuntimeException("Unknown or invalid constant type at " + index);
         }
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitPushInstruction(this);
-        v.visitTypedInstruction(this);
-        v.visitCPInstruction(this);
-        v.visitLDC2_W(this);
-    }
 }
index 628a11a..da05f89 100644 (file)
@@ -36,22 +36,4 @@ public class LDIV extends ArithmeticInstruction implements ExceptionThrower {
             org.apache.tomcat.util.bcel.ExceptionConstants.ARITHMETIC_EXCEPTION
         };
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLDIV(this);
-    }
 }
index f402223..b2ce867 100644 (file)
@@ -37,18 +37,4 @@ public class LLOAD extends LoadInstruction {
     public LLOAD(int n) {
         super(org.apache.tomcat.util.bcel.Constants.LLOAD, org.apache.tomcat.util.bcel.Constants.LLOAD_0, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        super.accept(v);
-        v.visitLLOAD(this);
-    }
 }
index efa1b16..f4e48a0 100644 (file)
@@ -29,21 +29,4 @@ public class LMUL extends ArithmeticInstruction {
     public LMUL() {
         super(org.apache.tomcat.util.bcel.Constants.LMUL);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLMUL(this);
-    }
 }
index 5b914bb..29ddd5d 100644 (file)
@@ -28,21 +28,4 @@ public class LNEG extends ArithmeticInstruction {
     public LNEG() {
         super(org.apache.tomcat.util.bcel.Constants.LNEG);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLNEG(this);
-    }
 }
index e278c9e..673904a 100644 (file)
@@ -75,21 +75,4 @@ public class LOOKUPSWITCH extends Select {
             indices[i] = bytes.readInt();
         }
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitVariableLengthInstruction(this);
-        v.visitStackProducer(this);
-        v.visitBranchInstruction(this);
-        v.visitSelect(this);
-        v.visitLOOKUPSWITCH(this);
-    }
 }
index 1e4e31f..c57d11c 100644 (file)
@@ -28,21 +28,4 @@ public class LOR extends ArithmeticInstruction {
     public LOR() {
         super(org.apache.tomcat.util.bcel.Constants.LOR);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLOR(this);
-    }
 }
index 20b17c5..845a225 100644 (file)
@@ -35,22 +35,4 @@ public class LREM extends ArithmeticInstruction implements ExceptionThrower {
             org.apache.tomcat.util.bcel.ExceptionConstants.ARITHMETIC_EXCEPTION
         };
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLREM(this);
-    }
 }
index cd7f8a6..e637322 100644 (file)
@@ -28,21 +28,4 @@ public class LRETURN extends ReturnInstruction {
     public LRETURN() {
         super(org.apache.tomcat.util.bcel.Constants.LRETURN);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackConsumer(this);
-        v.visitReturnInstruction(this);
-        v.visitLRETURN(this);
-    }
 }
index d12463a..21794d7 100644 (file)
@@ -28,21 +28,4 @@ public class LSHL extends ArithmeticInstruction {
     public LSHL() {
         super(org.apache.tomcat.util.bcel.Constants.LSHL);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLSHL(this);
-    }
 }
index 81af648..8f7d62b 100644 (file)
@@ -28,21 +28,4 @@ public class LSHR extends ArithmeticInstruction {
     public LSHR() {
         super(org.apache.tomcat.util.bcel.Constants.LSHR);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLSHR(this);
-    }
 }
index 2490af1..6e5ca8e 100644 (file)
@@ -37,18 +37,4 @@ public class LSTORE extends StoreInstruction {
     public LSTORE(int n) {
         super(org.apache.tomcat.util.bcel.Constants.LSTORE, org.apache.tomcat.util.bcel.Constants.LSTORE_0, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        super.accept(v);
-        v.visitLSTORE(this);
-    }
 }
index 5961a5b..d6c3d82 100644 (file)
@@ -29,21 +29,4 @@ public class LSUB extends ArithmeticInstruction {
     public LSUB() {
         super(org.apache.tomcat.util.bcel.Constants.LSUB);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLSUB(this);
-    }
 }
index 862e498..1dd9a03 100644 (file)
@@ -28,21 +28,4 @@ public class LUSHR extends ArithmeticInstruction {
     public LUSHR() {
         super(org.apache.tomcat.util.bcel.Constants.LUSHR);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLUSHR(this);
-    }
 }
index 93f0a99..30e72fc 100644 (file)
@@ -28,21 +28,4 @@ public class LXOR extends ArithmeticInstruction {
     public LXOR() {
         super(org.apache.tomcat.util.bcel.Constants.LXOR);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitTypedInstruction(this);
-        v.visitStackProducer(this);
-        v.visitStackConsumer(this);
-        v.visitArithmeticInstruction(this);
-        v.visitLXOR(this);
-    }
 }
index 6a7c513..5a4f361 100644 (file)
@@ -43,21 +43,4 @@ public abstract class LoadInstruction extends LocalVariableInstruction implement
     protected LoadInstruction(short opcode, short c_tag, int n) {
         super(opcode, c_tag, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitPushInstruction(this);
-        v.visitTypedInstruction(this);
-        v.visitLocalVariableInstruction(this);
-        v.visitLoadInstruction(this);
-    }
 }
index c99fd56..1f98a60 100644 (file)
@@ -35,19 +35,4 @@ public class MONITORENTER extends Instruction implements ExceptionThrower, Stack
             org.apache.tomcat.util.bcel.ExceptionConstants.NULL_POINTER_EXCEPTION
         };
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitStackConsumer(this);
-        v.visitMONITORENTER(this);
-    }
 }
index 38d27b7..5560a5c 100644 (file)
@@ -35,19 +35,4 @@ public class MONITOREXIT extends Instruction implements ExceptionThrower, StackC
             org.apache.tomcat.util.bcel.ExceptionConstants.NULL_POINTER_EXCEPTION
         };
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitStackConsumer(this);
-        v.visitMONITOREXIT(this);
-    }
 }
index f86b03e..6e68cba 100644 (file)
@@ -125,22 +125,4 @@ public class MULTIANEWARRAY extends CPInstruction implements LoadClass, Allocati
         }
         return (t instanceof ObjectType) ? (ObjectType) t : null;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitLoadClass(this);
-        v.visitAllocationInstruction(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitCPInstruction(this);
-        v.visitMULTIANEWARRAY(this);
-    }
 }
index 9d2aeb5..c884154 100644 (file)
@@ -54,23 +54,4 @@ public class NEW extends CPInstruction implements LoadClass, AllocationInstructi
     public ObjectType getLoadClassType( ConstantPoolGen cpg ) {
         return (ObjectType) getType(cpg);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitLoadClass(this);
-        v.visitAllocationInstruction(this);
-        v.visitExceptionThrower(this);
-        v.visitStackProducer(this);
-        v.visitTypedInstruction(this);
-        v.visitCPInstruction(this);
-        v.visitNEW(this);
-    }
 }
index 22af18d..d983785 100644 (file)
@@ -101,20 +101,4 @@ public class NEWARRAY extends Instruction implements AllocationInstruction, Exce
             org.apache.tomcat.util.bcel.ExceptionConstants.NEGATIVE_ARRAY_SIZE_EXCEPTION
         };
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitAllocationInstruction(this);
-        v.visitExceptionThrower(this);
-        v.visitStackProducer(this);
-        v.visitNEWARRAY(this);
-    }
 }
index d9f3f5e..75a1f57 100644 (file)
@@ -27,17 +27,4 @@ public class NOP extends Instruction {
     public NOP() {
         super(org.apache.tomcat.util.bcel.Constants.NOP, (short) 1);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitNOP(this);
-    }
 }
index 4ca24dc..9c6b77c 100644 (file)
@@ -29,20 +29,4 @@ public class POP extends StackInstruction implements PopInstruction {
     public POP() {
         super(org.apache.tomcat.util.bcel.Constants.POP);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitPopInstruction(this);
-        v.visitStackInstruction(this);
-        v.visitPOP(this);
-    }
 }
index ebfd6ad..3db05f6 100644 (file)
@@ -29,20 +29,4 @@ public class POP2 extends StackInstruction implements PopInstruction {
     public POP2() {
         super(org.apache.tomcat.util.bcel.Constants.POP2);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitPopInstruction(this);
-        v.visitStackInstruction(this);
-        v.visitPOP2(this);
-    }
 }
index 133e836..c34c52c 100644 (file)
@@ -56,25 +56,4 @@ public class PUTFIELD extends FieldInstruction implements PopInstruction, Except
         cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length] = ExceptionConstants.NULL_POINTER_EXCEPTION;
         return cs;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitStackConsumer(this);
-        v.visitPopInstruction(this);
-        v.visitTypedInstruction(this);
-        v.visitLoadClass(this);
-        v.visitCPInstruction(this);
-        v.visitFieldOrMethod(this);
-        v.visitFieldInstruction(this);
-        v.visitPUTFIELD(this);
-    }
 }
index 3357912..ce52249 100644 (file)
@@ -55,25 +55,4 @@ public class PUTSTATIC extends FieldInstruction implements ExceptionThrower, Pop
         cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length] = ExceptionConstants.INCOMPATIBLE_CLASS_CHANGE_ERROR;
         return cs;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitStackConsumer(this);
-        v.visitPopInstruction(this);
-        v.visitTypedInstruction(this);
-        v.visitLoadClass(this);
-        v.visitCPInstruction(this);
-        v.visitFieldOrMethod(this);
-        v.visitFieldInstruction(this);
-        v.visitPUTSTATIC(this);
-    }
 }
index 7a14ed6..0bf095c 100644 (file)
@@ -123,17 +123,4 @@ public class RET extends Instruction implements IndexedInstruction, TypedInstruc
     public Type getType( ConstantPoolGen cp ) {
         return ReturnaddressType.NO_TARGET;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitRET(this);
-    }
 }
index afb438b..e9f25c9 100644 (file)
@@ -28,21 +28,4 @@ public class RETURN extends ReturnInstruction {
     public RETURN() {
         super(org.apache.tomcat.util.bcel.Constants.RETURN);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitStackConsumer(this);
-        v.visitReturnInstruction(this);
-        v.visitRETURN(this);
-    }
 }
index bf7a69f..8942646 100644 (file)
@@ -28,21 +28,4 @@ public class SALOAD extends ArrayInstruction implements StackProducer {
     public SALOAD() {
         super(org.apache.tomcat.util.bcel.Constants.SALOAD);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackProducer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitSALOAD(this);
-    }
 }
index f6908f7..94c1b8c 100644 (file)
@@ -28,21 +28,4 @@ public class SASTORE extends ArrayInstruction implements StackConsumer {
     public SASTORE() {
         super(org.apache.tomcat.util.bcel.Constants.SASTORE);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitExceptionThrower(this);
-        v.visitTypedInstruction(this);
-        v.visitArrayInstruction(this);
-        v.visitSASTORE(this);
-    }
 }
index 890d8dd..85448a7 100644 (file)
@@ -83,21 +83,4 @@ public class SIPUSH extends Instruction implements ConstantPushInstruction {
     public Type getType( ConstantPoolGen cp ) {
         return Type.SHORT;
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitPushInstruction(this);
-        v.visitStackProducer(this);
-        v.visitTypedInstruction(this);
-        v.visitConstantPushInstruction(this);
-        v.visitSIPUSH(this);
-    }
 }
index 71ced13..abc3432 100644 (file)
@@ -28,20 +28,4 @@ public class SWAP extends StackInstruction implements StackConsumer, StackProduc
     public SWAP() {
         super(org.apache.tomcat.util.bcel.Constants.SWAP);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitStackProducer(this);
-        v.visitStackInstruction(this);
-        v.visitSWAP(this);
-    }
 }
index 6ce354f..bf4d426 100644 (file)
@@ -43,21 +43,4 @@ public abstract class StoreInstruction extends LocalVariableInstruction implemen
     protected StoreInstruction(short opcode, short c_tag, int n) {
         super(opcode, c_tag, n);
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitStackConsumer(this);
-        v.visitPopInstruction(this);
-        v.visitTypedInstruction(this);
-        v.visitLocalVariableInstruction(this);
-        v.visitStoreInstruction(this);
-    }
 }
index 15a3f5b..2d2e713 100644 (file)
@@ -87,21 +87,4 @@ public class TABLESWITCH extends Select {
             indices[i] = bytes.readInt();
         }
     }
-
-
-    /**
-     * Call corresponding visitor method(s). The order is:
-     * Call visitor methods of implemented interfaces first, then
-     * call methods according to the class hierarchy in descending order,
-     * i.e., the most specific visitXXX() call comes last.
-     *
-     * @param v Visitor object
-     */
-    public void accept( Visitor v ) {
-        v.visitVariableLengthInstruction(this);
-        v.visitStackProducer(this);
-        v.visitBranchInstruction(this);
-        v.visitSelect(this);
-        v.visitTABLESWITCH(this);
-    }
 }
diff --git a/java/org/apache/tomcat/util/bcel/generic/Visitor.java b/java/org/apache/tomcat/util/bcel/generic/Visitor.java
deleted file mode 100644 (file)
index 65b4838..0000000
+++ /dev/null
@@ -1,568 +0,0 @@
-/*
- * Copyright  2000-2009 The Apache Software Foundation
- *
- *  Licensed under the Apache License, Version 2.0 (the "License"); 
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License. 
- *
- */
-package org.apache.tomcat.util.bcel.generic;
-
-/**
- * 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$
- * @author  <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
- */
-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 );
-}
diff --git a/java/org/apache/tomcat/util/bcel/util/BCELFactory.java b/java/org/apache/tomcat/util/bcel/util/BCELFactory.java
deleted file mode 100644 (file)
index 0cdd27a..0000000
+++ /dev/null
@@ -1,332 +0,0 @@
-/*
- * Copyright  2000-2009 The Apache Software Foundation
- *
- *  Licensed under the Apache License, Version 2.0 (the "License"); 
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License. 
- *
- */
-package org.apache.tomcat.util.bcel.util;
-
-import java.io.PrintWriter;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-
-import org.apache.tomcat.util.bcel.Constants;
-import org.apache.tomcat.util.bcel.classfile.Utility;
-import org.apache.tomcat.util.bcel.generic.AllocationInstruction;
-import org.apache.tomcat.util.bcel.generic.ArrayInstruction;
-import org.apache.tomcat.util.bcel.generic.ArrayType;
-import org.apache.tomcat.util.bcel.generic.BranchHandle;
-import org.apache.tomcat.util.bcel.generic.BranchInstruction;
-import org.apache.tomcat.util.bcel.generic.CHECKCAST;
-import org.apache.tomcat.util.bcel.generic.CPInstruction;
-import org.apache.tomcat.util.bcel.generic.CodeExceptionGen;
-import org.apache.tomcat.util.bcel.generic.ConstantPoolGen;
-import org.apache.tomcat.util.bcel.generic.ConstantPushInstruction;
-import org.apache.tomcat.util.bcel.generic.EmptyVisitor;
-import org.apache.tomcat.util.bcel.generic.FieldInstruction;
-import org.apache.tomcat.util.bcel.generic.IINC;
-import org.apache.tomcat.util.bcel.generic.INSTANCEOF;
-import org.apache.tomcat.util.bcel.generic.Instruction;
-import org.apache.tomcat.util.bcel.generic.InstructionConstants;
-import org.apache.tomcat.util.bcel.generic.InstructionHandle;
-import org.apache.tomcat.util.bcel.generic.InvokeInstruction;
-import org.apache.tomcat.util.bcel.generic.LDC;
-import org.apache.tomcat.util.bcel.generic.LDC2_W;
-import org.apache.tomcat.util.bcel.generic.LocalVariableInstruction;
-import org.apache.tomcat.util.bcel.generic.MULTIANEWARRAY;
-import org.apache.tomcat.util.bcel.generic.MethodGen;
-import org.apache.tomcat.util.bcel.generic.NEWARRAY;
-import org.apache.tomcat.util.bcel.generic.ObjectType;
-import org.apache.tomcat.util.bcel.generic.RET;
-import org.apache.tomcat.util.bcel.generic.ReturnInstruction;
-import org.apache.tomcat.util.bcel.generic.Select;
-import org.apache.tomcat.util.bcel.generic.Type;
-
-/**
- * Factory creates il.append() statements, and sets instruction targets.
- * A helper class for BCELifier.
- *
- * @see BCELifier
- * @version $Id$
- * @author  <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
- */
-class BCELFactory extends EmptyVisitor {
-
-    private MethodGen _mg;
-    private PrintWriter _out;
-    private ConstantPoolGen _cp;
-
-
-    BCELFactory(MethodGen mg, PrintWriter out) {
-        _mg = mg;
-        _cp = mg.getConstantPool();
-        _out = out;
-    }
-
-    private Map branch_map = new HashMap(); // Map<Instruction, InstructionHandle>
-
-
-    public void start() {
-        if (!_mg.isAbstract() && !_mg.isNative()) {
-            for (InstructionHandle ih = _mg.getInstructionList().getStart(); ih != null; ih = ih
-                    .getNext()) {
-                Instruction i = ih.getInstruction();
-                if (i instanceof BranchInstruction) {
-                    branch_map.put(i, ih); // memorize container
-                }
-                if (ih.hasTargeters()) {
-                    if (i instanceof BranchInstruction) {
-                        _out.println("    InstructionHandle ih_" + ih.getPosition() + ";");
-                    } else {
-                        _out.print("    InstructionHandle ih_" + ih.getPosition() + " = ");
-                    }
-                } else {
-                    _out.print("    ");
-                }
-                if (!visitInstruction(i)) {
-                    i.accept(this);
-                }
-            }
-            updateBranchTargets();
-            updateExceptionHandlers();
-        }
-    }
-
-
-    private boolean visitInstruction( Instruction i ) {
-        short opcode = i.getOpcode();
-        if ((InstructionConstants.INSTRUCTIONS[opcode] != null)
-                && !(i instanceof ConstantPushInstruction) && !(i instanceof ReturnInstruction)) { // Handled below
-            _out.println("il.append(InstructionConstants."
-                    + i.getName().toUpperCase(Locale.ENGLISH) + ");");
-            return true;
-        }
-        return false;
-    }
-
-
-    public void visitLocalVariableInstruction( LocalVariableInstruction i ) {
-        short opcode = i.getOpcode();
-        Type type = i.getType(_cp);
-        if (opcode == Constants.IINC) {
-            _out.println("il.append(new IINC(" + i.getIndex() + ", " + ((IINC) i).getIncrement()
-                    + "));");
-        } else {
-            String kind = (opcode < Constants.ISTORE) ? "Load" : "Store";
-            _out.println("il.append(_factory.create" + kind + "(" + BCELifier.printType(type)
-                    + ", " + i.getIndex() + "));");
-        }
-    }
-
-
-    public void visitArrayInstruction( ArrayInstruction i ) {
-        short opcode = i.getOpcode();
-        Type type = i.getType(_cp);
-        String kind = (opcode < Constants.IASTORE) ? "Load" : "Store";
-        _out.println("il.append(_factory.createArray" + kind + "(" + BCELifier.printType(type)
-                + "));");
-    }
-
-
-    public void visitFieldInstruction( FieldInstruction i ) {
-        short opcode = i.getOpcode();
-        String class_name = i.getClassName(_cp);
-        String field_name = i.getFieldName(_cp);
-        Type type = i.getFieldType(_cp);
-        _out.println("il.append(_factory.createFieldAccess(\"" + class_name + "\", \"" + field_name
-                + "\", " + BCELifier.printType(type) + ", " + "Constants."
-                + Constants.OPCODE_NAMES[opcode].toUpperCase(Locale.ENGLISH) + "));");
-    }
-
-
-    public void visitInvokeInstruction( InvokeInstruction i ) {
-        short opcode = i.getOpcode();
-        String class_name = i.getClassName(_cp);
-        String method_name = i.getMethodName(_cp);
-        Type type = i.getReturnType(_cp);
-        Type[] arg_types = i.getArgumentTypes(_cp);
-        _out.println("il.append(_factory.createInvoke(\"" + class_name + "\", \"" + method_name
-                + "\", " + BCELifier.printType(type) + ", "
-                + BCELifier.printArgumentTypes(arg_types) + ", " + "Constants."
-                + Constants.OPCODE_NAMES[opcode].toUpperCase(Locale.ENGLISH) + "));");
-    }
-
-
-    public void visitAllocationInstruction( AllocationInstruction i ) {
-        Type type;
-        if (i instanceof CPInstruction) {
-            type = ((CPInstruction) i).getType(_cp);
-        } else {
-            type = ((NEWARRAY) i).getType();
-        }
-        short opcode = ((Instruction) i).getOpcode();
-        int dim = 1;
-        switch (opcode) {
-            case Constants.NEW:
-                _out.println("il.append(_factory.createNew(\"" + ((ObjectType) type).getClassName()
-                        + "\"));");
-                break;
-            case Constants.MULTIANEWARRAY:
-                dim = ((MULTIANEWARRAY) i).getDimensions();
-                /* FALL THRU */
-            case Constants.ANEWARRAY:
-            case Constants.NEWARRAY:
-                if (type instanceof ArrayType) {
-                    type = ((ArrayType) type).getBasicType();
-                }
-                _out.println("il.append(_factory.createNewArray(" + BCELifier.printType(type)
-                        + ", (short) " + dim + "));");
-                break;
-            default:
-                throw new RuntimeException("Oops: " + opcode);
-        }
-    }
-
-
-    private void createConstant( Object value ) {
-        String embed = value.toString();
-        if (value instanceof String) {
-            embed = '"' + Utility.convertString(embed) + '"';
-        } else if (value instanceof Character) {
-            embed = "(char)0x" + Integer.toHexString(((Character) value).charValue());
-        } else if (value instanceof Float) {
-            embed += "f";
-        } else if (value instanceof Long) {
-            embed += "L";
-        }
-        _out.println("il.append(new PUSH(_cp, " + embed + "));");
-    }
-
-
-    public void visitLDC( LDC i ) {
-        createConstant(i.getValue(_cp));
-    }
-
-
-    public void visitLDC2_W( LDC2_W i ) {
-        createConstant(i.getValue(_cp));
-    }
-
-
-    public void visitConstantPushInstruction( ConstantPushInstruction i ) {
-        createConstant(i.getValue());
-    }
-
-
-    public void visitINSTANCEOF( INSTANCEOF i ) {
-        Type type = i.getType(_cp);
-        _out.println("il.append(new INSTANCEOF(_cp.addClass(" + BCELifier.printType(type) + ")));");
-    }
-
-
-    public void visitCHECKCAST( CHECKCAST i ) {
-        Type type = i.getType(_cp);
-        _out.println("il.append(_factory.createCheckCast(" + BCELifier.printType(type) + "));");
-    }
-
-
-    public void visitReturnInstruction( ReturnInstruction i ) {
-        Type type = i.getType(_cp);
-        _out.println("il.append(_factory.createReturn(" + BCELifier.printType(type) + "));");
-    }
-
-    // Memorize BranchInstructions that need an update
-    private List branches = new ArrayList();
-
-
-    public void visitBranchInstruction( BranchInstruction bi ) {
-        BranchHandle bh = (BranchHandle) branch_map.get(bi);
-        int pos = bh.getPosition();
-        String name = bi.getName() + "_" + pos;
-        if (bi instanceof Select) {
-            Select s = (Select) bi;
-            branches.add(bi);
-            StringBuffer args = new StringBuffer("new int[] { ");
-            int[] matchs = s.getMatchs();
-            for (int i = 0; i < matchs.length; i++) {
-                args.append(matchs[i]);
-                if (i < matchs.length - 1) {
-                    args.append(", ");
-                }
-            }
-            args.append(" }");
-            _out.print("Select " + name + " = new " + bi.getName().toUpperCase(Locale.ENGLISH)
-                    + "(" + args + ", new InstructionHandle[] { ");
-            for (int i = 0; i < matchs.length; i++) {
-                _out.print("null");
-                if (i < matchs.length - 1) {
-                    _out.print(", ");
-                }
-            }
-            _out.println(" }, null);");
-        } else {
-            int t_pos = bh.getTarget().getPosition();
-            String target;
-            if (pos > t_pos) {
-                target = "ih_" + t_pos;
-            } else {
-                branches.add(bi);
-                target = "null";
-            }
-            _out.println("    BranchInstruction " + name + " = _factory.createBranchInstruction("
-                    + "Constants." + bi.getName().toUpperCase(Locale.ENGLISH) + ", " + target
-                    + ");");
-        }
-        if (bh.hasTargeters()) {
-            _out.println("    ih_" + pos + " = il.append(" + name + ");");
-        } else {
-            _out.println("    il.append(" + name + ");");
-        }
-    }
-
-
-    public void visitRET( RET i ) {
-        _out.println("il.append(new RET(" + i.getIndex() + ")));");
-    }
-
-
-    private void updateBranchTargets() {
-        for (Iterator i = branches.iterator(); i.hasNext();) {
-            BranchInstruction bi = (BranchInstruction) i.next();
-            BranchHandle bh = (BranchHandle) branch_map.get(bi);
-            int pos = bh.getPosition();
-            String name = bi.getName() + "_" + pos;
-            int t_pos = bh.getTarget().getPosition();
-            _out.println("    " + name + ".setTarget(ih_" + t_pos + ");");
-            if (bi instanceof Select) {
-                InstructionHandle[] ihs = ((Select) bi).getTargets();
-                for (int j = 0; j < ihs.length; j++) {
-                    t_pos = ihs[j].getPosition();
-                    _out.println("    " + name + ".setTarget(" + j + ", ih_" + t_pos + ");");
-                }
-            }
-        }
-    }
-
-
-    private void updateExceptionHandlers() {
-        CodeExceptionGen[] handlers = _mg.getExceptionHandlers();
-        for (int i = 0; i < handlers.length; i++) {
-            CodeExceptionGen h = handlers[i];
-            String type = (h.getCatchType() == null) ? "null" : BCELifier.printType(h
-                    .getCatchType());
-            _out.println("    method.addExceptionHandler(" + "ih_" + h.getStartPC().getPosition()
-                    + ", " + "ih_" + h.getEndPC().getPosition() + ", " + "ih_"
-                    + h.getHandlerPC().getPosition() + ", " + type + ");");
-        }
-    }
-}
diff --git a/java/org/apache/tomcat/util/bcel/util/BCELifier.java b/java/org/apache/tomcat/util/bcel/util/BCELifier.java
deleted file mode 100644 (file)
index 4acc55b..0000000
+++ /dev/null
@@ -1,268 +0,0 @@
-/*
- * Copyright  2000-2009 The Apache Software Foundation
- *
- *  Licensed under the Apache License, Version 2.0 (the "License"); 
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License. 
- *
- */
-package org.apache.tomcat.util.bcel.util;
-
-import java.io.OutputStream;
-import java.io.PrintWriter;
-import java.util.Locale;
-import org.apache.tomcat.util.bcel.Constants;
-import org.apache.tomcat.util.bcel.Repository;
-import org.apache.tomcat.util.bcel.classfile.ClassParser;
-import org.apache.tomcat.util.bcel.classfile.ConstantValue;
-import org.apache.tomcat.util.bcel.classfile.Field;
-import org.apache.tomcat.util.bcel.classfile.JavaClass;
-import org.apache.tomcat.util.bcel.classfile.Method;
-import org.apache.tomcat.util.bcel.classfile.Utility;
-import org.apache.tomcat.util.bcel.generic.ArrayType;
-import org.apache.tomcat.util.bcel.generic.ConstantPoolGen;
-import org.apache.tomcat.util.bcel.generic.MethodGen;
-import org.apache.tomcat.util.bcel.generic.Type;
-
-/** 
- * This class takes a given JavaClass object and converts it to a
- * Java program that creates that very class using BCEL. This
- * gives new users of BCEL a useful example showing how things
- * are done with BCEL. It does not cover all features of BCEL,
- * but tries to mimic hand-written code as close as possible.
- *
- * @version $Id$
- * @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A> 
- */
-public class BCELifier extends org.apache.tomcat.util.bcel.classfile.EmptyVisitor {
-
-    private static final int FLAG_FOR_UNKNOWN = -1;
-    private static final int FLAG_FOR_CLASS = 0;
-    private static final int FLAG_FOR_METHOD = 1;
-    private JavaClass _clazz;
-    private PrintWriter _out;
-    private ConstantPoolGen _cp;
-
-
-    /** @param clazz Java class to "decompile"
-     * @param out where to output Java program
-     */
-    public BCELifier(JavaClass clazz, OutputStream out) {
-        _clazz = clazz;
-        _out = new PrintWriter(out);
-        _cp = new ConstantPoolGen(_clazz.getConstantPool());
-    }
-
-
-    /** Start Java code generation
-     */
-    public void start() {
-        visitJavaClass(_clazz);
-        _out.flush();
-    }
-
-
-    public void visitJavaClass( JavaClass clazz ) {
-        String class_name = clazz.getClassName();
-        String super_name = clazz.getSuperclassName();
-        String package_name = clazz.getPackageName();
-        String inter = Utility.printArray(clazz.getInterfaceNames(), false, true);
-        if (!"".equals(package_name)) {
-            class_name = class_name.substring(package_name.length() + 1);
-            _out.println("package " + package_name + ";");
-            _out.println();
-        }
-        _out.println("import org.apache.tomcat.util.bcel.generic.*;");
-        _out.println("import org.apache.tomcat.util.bcel.classfile.*;");
-        _out.println("import org.apache.tomcat.util.bcel.*;");
-        _out.println("import java.io.*;");
-        _out.println();
-        _out.println("public class " + class_name + "Creator implements Constants {");
-        _out.println("  private InstructionFactory _factory;");
-        _out.println("  private ConstantPoolGen    _cp;");
-        _out.println("  private ClassGen           _cg;");
-        _out.println();
-        _out.println("  public " + class_name + "Creator() {");
-        _out.println("    _cg = new ClassGen(\""
-                + (("".equals(package_name)) ? class_name : package_name + "." + class_name)
-                + "\", \"" + super_name + "\", " + "\"" + clazz.getSourceFileName() + "\", "
-                + printFlags(clazz.getAccessFlags(), FLAG_FOR_CLASS) + ", " + "new String[] { "
-                + inter + " });");
-        _out.println();
-        _out.println("    _cp = _cg.getConstantPool();");
-        _out.println("    _factory = new InstructionFactory(_cg, _cp);");
-        _out.println("  }");
-        _out.println();
-        printCreate();
-        Field[] fields = clazz.getFields();
-        if (fields.length > 0) {
-            _out.println("  private void createFields() {");
-            _out.println("    FieldGen field;");
-            for (int i = 0; i < fields.length; i++) {
-                fields[i].accept(this);
-            }
-            _out.println("  }");
-            _out.println();
-        }
-        Method[] methods = clazz.getMethods();
-        for (int i = 0; i < methods.length; i++) {
-            _out.println("  private void createMethod_" + i + "() {");
-            methods[i].accept(this);
-            _out.println("  }");
-            _out.println();
-        }
-        printMain();
-        _out.println("}");
-    }
-
-
-    private void printCreate() {
-        _out.println("  public void create(OutputStream out) throws IOException {");
-        Field[] fields = _clazz.getFields();
-        if (fields.length > 0) {
-            _out.println("    createFields();");
-        }
-        Method[] methods = _clazz.getMethods();
-        for (int i = 0; i < methods.length; i++) {
-            _out.println("    createMethod_" + i + "();");
-        }
-        _out.println("    _cg.getJavaClass().dump(out);");
-        _out.println("  }");
-        _out.println();
-    }
-
-
-    private void printMain() {
-        String class_name = _clazz.getClassName();
-        _out.println("  public static void main(String[] args) throws Exception {");
-        _out.println("    " + class_name + "Creator creator = new " + class_name + "Creator();");
-        _out.println("    creator.create(new FileOutputStream(\"" + class_name + ".class\"));");
-        _out.println("  }");
-    }
-
-
-    public void visitField( Field field ) {
-        _out.println();
-        _out.println("    field = new FieldGen(" + printFlags(field.getAccessFlags()) + ", "
-                + printType(field.getSignature()) + ", \"" + field.getName() + "\", _cp);");
-        ConstantValue cv = field.getConstantValue();
-        if (cv != null) {
-            String value = cv.toString();
-            _out.println("    field.setInitValue(" + value + ")");
-        }
-        _out.println("    _cg.addField(field.getField());");
-    }
-
-
-    public void visitMethod( Method method ) {
-        MethodGen mg = new MethodGen(method, _clazz.getClassName(), _cp);
-        Type result_type = mg.getReturnType();
-        Type[] arg_types = mg.getArgumentTypes();
-        _out.println("    InstructionList il = new InstructionList();");
-        _out.println("    MethodGen method = new MethodGen("
-                + printFlags(method.getAccessFlags(), FLAG_FOR_METHOD) + ", "
-                + printType(result_type) + ", " + printArgumentTypes(arg_types) + ", "
-                + "new String[] { " + Utility.printArray(mg.getArgumentNames(), false, true)
-                + " }, \"" + method.getName() + "\", \"" + _clazz.getClassName() + "\", il, _cp);");
-        _out.println();
-        BCELFactory factory = new BCELFactory(mg, _out);
-        factory.start();
-        _out.println("    method.setMaxStack();");
-        _out.println("    method.setMaxLocals();");
-        _out.println("    _cg.addMethod(method.getMethod());");
-        _out.println("    il.dispose();");
-    }
-
-
-    static String printFlags( int flags ) {
-        return printFlags(flags, FLAG_FOR_UNKNOWN);
-    }
-
-
-    static String printFlags( int flags, int reason ) {
-        if (flags == 0) {
-            return "0";
-        }
-        StringBuffer buf = new StringBuffer();
-        for (int i = 0, pow = 1; pow <= Constants.MAX_ACC_FLAG; i++) {
-            if ((flags & pow) != 0) {
-                if ((pow == Constants.ACC_SYNCHRONIZED) && (reason == FLAG_FOR_CLASS)) {
-                    buf.append("ACC_SUPER | ");
-                } else if ((pow == Constants.ACC_VOLATILE) && (reason == FLAG_FOR_METHOD)) {
-                    buf.append("ACC_BRIDGE | ");
-                } else if ((pow == Constants.ACC_TRANSIENT) && (reason == FLAG_FOR_METHOD)) {
-                    buf.append("ACC_VARARGS | ");
-                } else {
-                    buf.append("ACC_")
-                            .append(Constants.ACCESS_NAMES[i].toUpperCase(Locale.ENGLISH)).append(
-                                    " | ");
-                }
-            }
-            pow <<= 1;
-        }
-        String str = buf.toString();
-        return str.substring(0, str.length() - 3);
-    }
-
-
-    static String printArgumentTypes( Type[] arg_types ) {
-        if (arg_types.length == 0) {
-            return "Type.NO_ARGS";
-        }
-        StringBuffer args = new StringBuffer();
-        for (int i = 0; i < arg_types.length; i++) {
-            args.append(printType(arg_types[i]));
-            if (i < arg_types.length - 1) {
-                args.append(", ");
-            }
-        }
-        return "new Type[] { " + args.toString() + " }";
-    }
-
-
-    static String printType( Type type ) {
-        return printType(type.getSignature());
-    }
-
-
-    static String printType( String signature ) {
-        Type type = Type.getType(signature);
-        byte t = type.getType();
-        if (t <= Constants.T_VOID) {
-            return "Type." + Constants.TYPE_NAMES[t].toUpperCase(Locale.ENGLISH);
-        } else if (type.toString().equals("java.lang.String")) {
-            return "Type.STRING";
-        } else if (type.toString().equals("java.lang.Object")) {
-            return "Type.OBJECT";
-        } else if (type.toString().equals("java.lang.StringBuffer")) {
-            return "Type.STRINGBUFFER";
-        } else if (type instanceof ArrayType) {
-            ArrayType at = (ArrayType) type;
-            return "new ArrayType(" + printType(at.getBasicType()) + ", " + at.getDimensions()
-                    + ")";
-        } else {
-            return "new ObjectType(\"" + Utility.signatureToString(signature, false) + "\")";
-        }
-    }
-
-
-    /** Default main method
-     */
-    public static void main( String[] argv ) throws Exception {
-        JavaClass java_class;
-        String name = argv[0];
-        if ((java_class = Repository.lookupClass(name)) == null) {
-            java_class = new ClassParser(name).parse(); // May throw IOException
-        }
-        BCELifier bcelifier = new BCELifier(java_class, System.out);
-        bcelifier.start();
-    }
-}