    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 with the DescendingVisitor class, e.g. By
    022 * courtesy of David Spencer.
    023 *
    024 * @see DescendingVisitor
    025 */
    026public class EmptyVisitor implements Visitor {
    027    protected EmptyVisitor() {
    028    }
    029
    030    /**
    031     * @since 6.0
    032     */
    033    @Override
    034    public void visitAnnotation(final Annotations obj) {
    035    }
    036
    037    /**
    038     * @since 6.0
    039     */
    040    @Override
    041    public void visitAnnotationDefault(final AnnotationDefault obj) {
    042    }
    043
    044    /**
    045     * @since 6.0
    046     */
    047    @Override
    048    public void visitAnnotationEntry(final AnnotationEntry obj) {
    049    }
    050
    051    /**
    052     * @since 6.0
    053     */
    054    @Override
    055    public void visitBootstrapMethods(final BootstrapMethods obj) {
    056    }
    057
    058    @Override
    059    public void visitCode(final Code obj) {
    060    }
    061
    062    @Override
    063    public void visitCodeException(final CodeException obj) {
    064    }
    065
    066    @Override
    067    public void visitConstantClass(final ConstantClass obj) {
    068    }
    069
    070    @Override
    071    public void visitConstantDouble(final ConstantDouble obj) {
    072    }
    073
    074    /**
    075     * @since 6.3
    076     */
    077    @Override
    078    public void visitConstantDynamic(final ConstantDynamic obj) {
    079    }
    080
    081    @Override
    082    public void visitConstantFieldref(final ConstantFieldref obj) {
    083    }
    084
    085    @Override
    086    public void visitConstantFloat(final ConstantFloat obj) {
    087    }
    088
    089    @Override
    090    public void visitConstantInteger(final ConstantInteger obj) {
    091    }
    092
    093    @Override
    094    public void visitConstantInterfaceMethodref(final ConstantInterfaceMethodref obj) {
    095    }
    096
    097    @Override
    098    public void visitConstantInvokeDynamic(final ConstantInvokeDynamic obj) {
    099    }
    100
    101    @Override
    102    public void visitConstantLong(final ConstantLong obj) {
    103    }
    104
    105    /**
    106     * @since 6.0
    107     */
    108    @Override
    109    public void visitConstantMethodHandle(final ConstantMethodHandle constantMethodHandle) {
    110    }
    111
    112    @Override
    113    public void visitConstantMethodref(final ConstantMethodref obj) {
    114    }
    115
    116    /**
    117     * @since 6.0
    118     */
    119    @Override
    120    public void visitConstantMethodType(final ConstantMethodType obj) {
    121    }
    122
    123    /**
    124     * @since 6.1
    125     */
    126    @Override
    127    public void visitConstantModule(final ConstantModule constantModule) {
    128    }
    129
    130    @Override
    131    public void visitConstantNameAndType(final ConstantNameAndType obj) {
    132    }
    133
    134    /**
    135     * @since 6.1
    136     */
    137    @Override
    138    public void visitConstantPackage(final ConstantPackage constantPackage) {
    139    }
    140
    141    @Override
    142    public void visitConstantPool(final ConstantPool obj) {
    143    }
    144
    145    @Override
    146    public void visitConstantString(final ConstantString obj) {
    147    }
    148
    149    @Override
    150    public void visitConstantUtf8(final ConstantUtf8 obj) {
    151    }
    152
    153    @Override
    154    public void visitConstantValue(final ConstantValue obj) {
    155    }
    156
    157    @Override
    158    public void visitDeprecated(final Deprecated obj) {
    159    }
    160
    161    /**
    162     * @since 6.0
    163     */
    164    @Override
    165    public void visitEnclosingMethod(final EnclosingMethod obj) {
    166    }
    167
    168    @Override
    169    public void visitExceptionTable(final ExceptionTable obj) {
    170    }
    171
    172    @Override
    173    public void visitField(final Field obj) {
    174    }
    175
    176    @Override
    177    public void visitInnerClass(final InnerClass obj) {
    178    }
    179
    180    @Override
    181    public void visitInnerClasses(final InnerClasses obj) {
    182    }
    183
    184    @Override
    185    public void visitJavaClass(final JavaClass obj) {
    186    }
    187
    188    @Override
    189    public void visitLineNumber(final LineNumber obj) {
    190    }
    191
    192    @Override
    193    public void visitLineNumberTable(final LineNumberTable obj) {
    194    }
    195
    196    @Override
    197    public void visitLocalVariable(final LocalVariable obj) {
    198    }
    199
    200    @Override
    201    public void visitLocalVariableTable(final LocalVariableTable obj) {
    202    }
    203
    204    /**
    205     * @since 6.0
    206     */
    207    @Override
    208    public void visitLocalVariableTypeTable(final LocalVariableTypeTable obj) {
    209    }
    210
    211    @Override
    212    public void visitMethod(final Method obj) {
    213    }
    214
    215    /**
    216     * @since 6.0
    217     * @Override public void visitStackMapTable(StackMapTable obj) { }
    218     */
    219
    220    /**
    221     * @since 6.0
    222     * @Override public void visitStackMapTableEntry(StackMapTableEntry obj) { }
    223     */
    224
    225    /**
    226     * @since 6.4.0
    227     */
    228    @Override
    229    public void visitMethodParameter(final MethodParameter obj) {
    230    }
    231
    232    /**
    233     * @since 6.0
    234     */
    235    @Override
    236    public void visitMethodParameters(final MethodParameters obj) {
    237    }
    238
    239    /** @since 6.4.0 */
    240    @Override
    241    public void visitModule(final Module obj) {
    242    }
    243
    244    /** @since 6.4.0 */
    245    @Override
    246    public void visitModuleExports(final ModuleExports obj) {
    247    }
    248
    249    /** @since 6.4.0 */
    250    @Override
    251    public void visitModuleMainClass(final ModuleMainClass obj) {
    252    }
    253
    254    /** @since 6.4.0 */
    255    @Override
    256    public void visitModuleOpens(final ModuleOpens obj) {
    257    }
    258
    259    /** @since 6.4.0 */
    260    @Override
    261    public void visitModulePackages(final ModulePackages obj) {
    262    }
    263
    264    /** @since 6.4.0 */
    265    @Override
    266    public void visitModuleProvides(final ModuleProvides obj) {
    267    }
    268
    269    /** @since 6.4.0 */
    270    @Override
    271    public void visitModuleRequires(final ModuleRequires obj) {
    272    }
    273
    274    /** @since 6.4.0 */
    275    @Override
    276    public void visitNestHost(final NestHost obj) {
    277    }
    278
    279    /** @since 6.4.0 */
    280    @Override
    281    public void visitNestMembers(final NestMembers obj) {
    282    }
    283
    284    /**
    285     * @since 6.0
    286     */
    287    @Override
    288    public void visitParameterAnnotation(final ParameterAnnotations obj) {
    289    }
    290
    291    /**
    292     * @since 6.0
    293     */
    294    @Override
    295    public void visitParameterAnnotationEntry(final ParameterAnnotationEntry parameterAnnotationEntry) {
    296    }
    297
    298    @Override
    299    public void visitSignature(final Signature obj) {
    300    }
    301
    302    @Override
    303    public void visitSourceFile(final SourceFile obj) {
    304    }
    305
    306    @Override
    307    public void visitStackMap(final StackMap obj) {
    308    }
    309
    310    @Override
    311    public void visitStackMapEntry(final StackMapEntry obj) {
    312    }
    313
    314    @Override
    315    public void visitSynthetic(final Synthetic obj) {
    316    }
    317
    318    @Override
    319    public void visitUnknown(final Unknown obj) {
    320    }
    321}