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