1 /*
   2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import com.sun.tools.classfile.*;
  25 
  26 /**
  27  * Trivial {@code Attribute.Visitor} implementation, to make it easy to
  28  * write visitors for specific attributes.
  29  */
  30 class AttributeVisitor<R, P> implements Attribute.Visitor<R, P> {
  31     public R visitBootstrapMethods(BootstrapMethods_attribute attr, P p) { return null; }
  32     public R visitDefault(DefaultAttribute attr, P p) { return null; }
  33     public R visitAnnotationDefault(AnnotationDefault_attribute attr, P p) { return null; }
  34     public R visitCharacterRangeTable(CharacterRangeTable_attribute attr, P p) { return null; }
  35     public R visitCode(Code_attribute attr, P p) { return null; }
  36     public R visitCompilationID(CompilationID_attribute attr, P p) { return null; }
  37     public R visitConstantValue(ConstantValue_attribute attr, P p) { return null; }
  38     public R visitDeprecated(Deprecated_attribute attr, P p) { return null; }
  39     public R visitEnclosingMethod(EnclosingMethod_attribute attr, P p) { return null; }
  40     public R visitExceptions(Exceptions_attribute attr, P p) { return null; }
  41     public R visitInnerClasses(InnerClasses_attribute attr, P p) { return null; }
  42     public R visitLineNumberTable(LineNumberTable_attribute attr, P p) { return null; }
  43     public R visitLocalVariableTable(LocalVariableTable_attribute attr, P p) { return null; }
  44     public R visitLocalVariableTypeTable(LocalVariableTypeTable_attribute attr, P p) { return null; }
  45     public R visitNestHost(NestHost_attribute attr, P p) { return null; }
  46     public R visitMethodParameters(MethodParameters_attribute attr, P p) { return null; }
  47     public R visitModule(Module_attribute attr, P p) { return null; }
  48     public R visitModuleHashes(ModuleHashes_attribute attr, P p) { return null; }
  49     public R visitModuleMainClass(ModuleMainClass_attribute attr, P p) { return null; }
  50     public R visitModulePackages(ModulePackages_attribute attr, P p) { return null; }
  51     public R visitModuleResolution(ModuleResolution_attribute attr, P p) { return null; }
  52     public R visitModuleTarget(ModuleTarget_attribute attr, P p) { return null; }
  53     public R visitNestMembers(NestMembers_attribute attr, P p) { return null; }
  54     public R visitRuntimeVisibleAnnotations(RuntimeVisibleAnnotations_attribute attr, P p) { return null; }
  55     public R visitRuntimeInvisibleAnnotations(RuntimeInvisibleAnnotations_attribute attr, P p) { return null; }
  56     public R visitRuntimeVisibleParameterAnnotations(RuntimeVisibleParameterAnnotations_attribute attr, P p) { return null; }
  57     public R visitRuntimeInvisibleParameterAnnotations(RuntimeInvisibleParameterAnnotations_attribute attr, P p) { return null; }
  58     public R visitRuntimeVisibleTypeAnnotations(RuntimeVisibleTypeAnnotations_attribute attr, P p) { return null; }
  59     public R visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute attr, P p) { return null; }
  60     public R visitSignature(Signature_attribute attr, P p) { return null; }
  61     public R visitSourceDebugExtension(SourceDebugExtension_attribute attr, P p) { return null; }
  62     public R visitSourceFile(SourceFile_attribute attr, P p) { return null; }
  63     public R visitSourceID(SourceID_attribute attr, P p) { return null; }
  64     public R visitStackMap(StackMap_attribute attr, P p) { return null; }
  65     public R visitStackMapTable(StackMapTable_attribute attr, P p) { return null; }
  66     public R visitSynthetic(Synthetic_attribute attr, P p) { return null; }
  67     public R visitPermittedSubtypes(PermittedSubtypes_attribute attr, P p) { return null; }
  68     public R visitRecord(Record_attribute attr, P p) { return null; }
  69 }