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