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