EmptyVisitor.java revision 286
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat/*
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * reserved comment block
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * DO NOT REMOVE OR ALTER!
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat */
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozatpackage com.sun.org.apache.bcel.internal.classfile;
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat/* ====================================================================
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * The Apache Software License, Version 1.1
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * Copyright (c) 2001 The Apache Software Foundation. All rights
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * reserved.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * Redistribution and use in source and binary forms, with or without
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * modification, are permitted provided that the following conditions
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * are met:
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * 1. Redistributions of source code must retain the above copyright
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * notice, this list of conditions and the following disclaimer.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * 2. Redistributions in binary form must reproduce the above copyright
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * notice, this list of conditions and the following disclaimer in
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * the documentation and/or other materials provided with the
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * distribution.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * 3. The end-user documentation included with the redistribution,
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * if any, must include the following acknowledgment:
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * "This product includes software developed by the
44ee8a102e3d8052631fbb119f58a55ce678d039Frederic Crozat * Apache Software Foundation (http://www.apache.org/)."
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * Alternately, this acknowledgment may appear in the software itself,
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * if and wherever such third-party acknowledgments normally appear.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * 4. The names "Apache" and "Apache Software Foundation" and
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * "Apache BCEL" must not be used to endorse or promote products
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * derived from this software without prior written permission. For
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * written permission, please contact apache@apache.org.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * 5. Products derived from this software may not be called "Apache",
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * "Apache BCEL", nor may "Apache" appear in their name, without
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * prior written permission of the Apache Software Foundation.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * SUCH DAMAGE.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * ====================================================================
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * This software consists of voluntary contributions made by many
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * individuals on behalf of the Apache Software Foundation. For more
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * information on the Apache Software Foundation, please see
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * <http://www.apache.org/>.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat */
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozatimport com.sun.org.apache.bcel.internal.classfile.*;
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozatimport com.sun.org.apache.bcel.internal.*;
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat/**
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * Visitor with empty method bodies, can be extended and used in conjunction with the
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * DescendingVisitor class, e.g.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * By courtesy of David Spencer.
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat * @see DescendingVisitor
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat *
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat */
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozatpublic class EmptyVisitor implements Visitor {
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat protected EmptyVisitor() { }
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitCode(Code obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitCodeException(CodeException obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantClass(ConstantClass obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantDouble(ConstantDouble obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantFieldref(ConstantFieldref obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantFloat(ConstantFloat obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantInteger(ConstantInteger obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantInterfaceMethodref(ConstantInterfaceMethodref obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantLong(ConstantLong obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantMethodref(ConstantMethodref obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantNameAndType(ConstantNameAndType obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantPool(ConstantPool obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantString(ConstantString obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantUtf8(ConstantUtf8 obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitConstantValue(ConstantValue obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitDeprecated(Deprecated obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitExceptionTable(ExceptionTable obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitField(Field obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitInnerClass(InnerClass obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitInnerClasses(InnerClasses obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitJavaClass(JavaClass obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitLineNumber(LineNumber obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitLineNumberTable(LineNumberTable obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitLocalVariable(LocalVariable obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitLocalVariableTable(LocalVariableTable obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitMethod(Method obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitSignature(Signature obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitSourceFile(SourceFile obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitSynthetic(Synthetic obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitUnknown(Unknown obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitStackMap(StackMap obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat public void visitStackMapEntry(StackMapEntry obj) {}
c840b37de865195a8742e219b4374d961a21d4d9Frederic Crozat}
44ee8a102e3d8052631fbb119f58a55ce678d039Frederic Crozat