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