    001/*
    002 * Licensed to the Apache Software Foundation (ASF) under one or more
    003 * contributor license agreements.  See the NOTICE file distributed with
    004 * this work for additional information regarding copyright ownership.
    005 * The ASF licenses this file to You under the Apache License, Version 2.0
    006 * (the "License"); you may not use this file except in compliance with
    007 * the License.  You may obtain a copy of the License at
    008 *
    009 *      http://www.apache.org/licenses/LICENSE-2.0
    010 *
    011 *  Unless required by applicable law or agreed to in writing, software
    012 *  distributed under the License is distributed on an "AS IS" BASIS,
    013 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    014 *  See the License for the specific language governing permissions and
    015 *  limitations under the License.
    016 *
    017 */
    018package org.apache.bcel.classfile;
    019
    020/**
    021 * Visitor with empty method bodies, can be extended and used in conjunction
    022 * with the DescendingVisitor class, e.g. By courtesy of David Spencer.
    023 *
    024 * @see DescendingVisitor
    025 * @version $Id: EmptyVisitor.java 1829452 2018-04-18 14:17:34Z markt $
    026 */
    027public class EmptyVisitor implements Visitor
    028{
    029    protected EmptyVisitor()
    030    {
    031    }
    032
    033    /**
    034     * @since 6.0
    035     */
    036    @Override
    037    public void visitAnnotation(final Annotations obj)
    038    {
    039    }
    040
    041    /**
    042     * @since 6.0
    043     */
    044    @Override
    045    public void visitParameterAnnotation(final ParameterAnnotations obj)
    046    {
    047    }
    048
    049    /**
    050     * @since 6.0
    051     */
    052    @Override
    053    public void visitAnnotationEntry(final AnnotationEntry obj)
    054    {
    055    }
    056
    057    /**
    058     * @since 6.0
    059     */
    060    @Override
    061    public void visitAnnotationDefault(final AnnotationDefault obj)
    062    {
    063    }
    064
    065    @Override
    066    public void visitCode(final Code obj)
    067    {
    068    }
    069
    070    @Override
    071    public void visitCodeException(final CodeException obj)
    072    {
    073    }
    074
    075    @Override
    076    public void visitConstantClass(final ConstantClass obj)
    077    {
    078    }
    079
    080    @Override
    081    public void visitConstantDouble(final ConstantDouble obj)
    082    {
    083    }
    084
    085    @Override
    086    public void visitConstantFieldref(final ConstantFieldref obj)
    087    {
    088    }
    089
    090    @Override
    091    public void visitConstantFloat(final ConstantFloat obj)
    092    {
    093    }
    094
    095    @Override
    096    public void visitConstantInteger(final ConstantInteger obj)
    097    {
    098    }
    099
    100    @Override
    101    public void visitConstantInterfaceMethodref(final ConstantInterfaceMethodref obj)
    102    {
    103    }
    104
    105    @Override
    106    public void visitConstantInvokeDynamic(final ConstantInvokeDynamic obj)
    107    {
    108    }
    109
    110    @Override
    111    public void visitConstantLong(final ConstantLong obj)
    112    {
    113    }
    114
    115    @Override
    116    public void visitConstantMethodref(final ConstantMethodref obj)
    117    {
    118    }
    119
    120    @Override
    121    public void visitConstantNameAndType(final ConstantNameAndType obj)
    122    {
    123    }
    124
    125    @Override
    126    public void visitConstantPool(final ConstantPool obj)
    127    {
    128    }
    129
    130    @Override
    131    public void visitConstantString(final ConstantString obj)
    132    {
    133    }
    134
    135    @Override
    136    public void visitConstantUtf8(final ConstantUtf8 obj)
    137    {
    138    }
    139
    140    @Override
    141    public void visitConstantValue(final ConstantValue obj)
    142    {
    143    }
    144
    145    @Override
    146    public void visitDeprecated(final Deprecated obj)
    147    {
    148    }
    149
    150    @Override
    151    public void visitExceptionTable(final ExceptionTable obj)
    152    {
    153    }
    154
    155    @Override
    156    public void visitField(final Field obj)
    157    {
    158    }
    159
    160    @Override
    161    public void visitInnerClass(final InnerClass obj)
    162    {
    163    }
    164
    165    @Override
    166    public void visitInnerClasses(final InnerClasses obj)
    167    {
    168    }
    169
    170    /**
    171     * @since 6.0
    172     */
    173    @Override
    174    public void visitBootstrapMethods(final BootstrapMethods obj)
    175    {
    176    }
    177
    178    @Override
    179    public void visitJavaClass(final JavaClass obj)
    180    {
    181    }
    182
    183    @Override
    184    public void visitLineNumber(final LineNumber obj)
    185    {
    186    }
    187
    188    @Override
    189    public void visitLineNumberTable(final LineNumberTable obj)
    190    {
    191    }
    192
    193    @Override
    194    public void visitLocalVariable(final LocalVariable obj)
    195    {
    196    }
    197
    198    @Override
    199    public void visitLocalVariableTable(final LocalVariableTable obj)
    200    {
    201    }
    202
    203    @Override
    204    public void visitMethod(final Method obj)
    205    {
    206    }
    207
    208    @Override
    209    public void visitSignature(final Signature obj)
    210    {
    211    }
    212
    213    @Override
    214    public void visitSourceFile(final SourceFile obj)
    215    {
    216    }
    217
    218    @Override
    219    public void visitSynthetic(final Synthetic obj)
    220    {
    221    }
    222
    223    @Override
    224    public void visitUnknown(final Unknown obj)
    225    {
    226    }
    227
    228    @Override
    229    public void visitStackMap(final StackMap obj)
    230    {
    231    }
    232
    233    @Override
    234    public void visitStackMapEntry(final StackMapEntry obj)
    235    {
    236    }
    237
    238    /**
    239     * @since 6.0
    240    @Override
    241    public void visitStackMapTable(StackMapTable obj)
    242    {
    243    }
    244     */
    245
    246    /**
    247     * @since 6.0
    248    @Override
    249    public void visitStackMapTableEntry(StackMapTableEntry obj)
    250    {
    251    }
    252     */
    253
    254    /**
    255     * @since 6.0
    256     */
    257    @Override
    258    public void visitEnclosingMethod(final EnclosingMethod obj)
    259    {
    260    }
    261
    262    /**
    263     * @since 6.0
    264     */
    265    @Override
    266    public void visitLocalVariableTypeTable(final LocalVariableTypeTable obj)
    267    {
    268    }
    269
    270    /**
    271     * @since 6.0
    272     */
    273    @Override
    274    public void visitMethodParameters(final MethodParameters obj)
    275    {
    276    }
    277
    278    /**
    279     * @since 6.0
    280     */
    281    @Override
    282    public void visitConstantMethodType(final ConstantMethodType obj)
    283    {
    284    }
    285
    286    /**
    287     * @since 6.0
    288     */
    289    @Override
    290    public void visitConstantMethodHandle(final ConstantMethodHandle constantMethodHandle) {
    291    }
    292
    293    /**
    294     * @since 6.0
    295     */
    296    @Override
    297    public void visitParameterAnnotationEntry(final ParameterAnnotationEntry parameterAnnotationEntry) {
    298    }
    299
    300    /**
    301     * @since 6.1
    302     */
    303    @Override
    304    public void visitConstantPackage(final ConstantPackage constantPackage) {
    305    }
    306
    307    /**
    308     * @since 6.1
    309     */
    310    @Override
    311    public void visitConstantModule(final ConstantModule constantModule) {
    312    }
    313
    314
    315    /**
    316     * @since 6.3
    317     */
    318    @Override
    319    public void visitConstantDynamic(final ConstantDynamic obj) {
    320    }
    321}