1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements.  See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License.  You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  */
18 package org.apache.bcel.classfile;
19 
20 /**
21  * Visitor with empty method bodies, can be extended and used in conjunction
22  * with the DescendingVisitor class, e.g. By courtesy of David Spencer.
23  *
24  * @see DescendingVisitor
25  * @version $Id$
26  */
27 public class EmptyVisitor implements Visitor
28 {
EmptyVisitor()29     protected EmptyVisitor()
30     {
31     }
32 
33     /**
34      * @since 6.0
35      */
36     @Override
visitAnnotation(final Annotations obj)37     public void visitAnnotation(final Annotations obj)
38     {
39     }
40 
41     /**
42      * @since 6.0
43      */
44     @Override
visitParameterAnnotation(final ParameterAnnotations obj)45     public void visitParameterAnnotation(final ParameterAnnotations obj)
46     {
47     }
48 
49     /**
50      * @since 6.0
51      */
52     @Override
visitAnnotationEntry(final AnnotationEntry obj)53     public void visitAnnotationEntry(final AnnotationEntry obj)
54     {
55     }
56 
57     /**
58      * @since 6.0
59      */
60     @Override
visitAnnotationDefault(final AnnotationDefault obj)61     public void visitAnnotationDefault(final AnnotationDefault obj)
62     {
63     }
64 
65     @Override
visitCode(final Code obj)66     public void visitCode(final Code obj)
67     {
68     }
69 
70     @Override
visitCodeException(final CodeException obj)71     public void visitCodeException(final CodeException obj)
72     {
73     }
74 
75     @Override
visitConstantClass(final ConstantClass obj)76     public void visitConstantClass(final ConstantClass obj)
77     {
78     }
79 
80     @Override
visitConstantDouble(final ConstantDouble obj)81     public void visitConstantDouble(final ConstantDouble obj)
82     {
83     }
84 
85     @Override
visitConstantFieldref(final ConstantFieldref obj)86     public void visitConstantFieldref(final ConstantFieldref obj)
87     {
88     }
89 
90     @Override
visitConstantFloat(final ConstantFloat obj)91     public void visitConstantFloat(final ConstantFloat obj)
92     {
93     }
94 
95     @Override
visitConstantInteger(final ConstantInteger obj)96     public void visitConstantInteger(final ConstantInteger obj)
97     {
98     }
99 
100     @Override
visitConstantInterfaceMethodref(final ConstantInterfaceMethodref obj)101     public void visitConstantInterfaceMethodref(final ConstantInterfaceMethodref obj)
102     {
103     }
104 
105     @Override
visitConstantInvokeDynamic(final ConstantInvokeDynamic obj)106     public void visitConstantInvokeDynamic(final ConstantInvokeDynamic obj)
107     {
108     }
109 
110     @Override
visitConstantLong(final ConstantLong obj)111     public void visitConstantLong(final ConstantLong obj)
112     {
113     }
114 
115     @Override
visitConstantMethodref(final ConstantMethodref obj)116     public void visitConstantMethodref(final ConstantMethodref obj)
117     {
118     }
119 
120     @Override
visitConstantNameAndType(final ConstantNameAndType obj)121     public void visitConstantNameAndType(final ConstantNameAndType obj)
122     {
123     }
124 
125     @Override
visitConstantPool(final ConstantPool obj)126     public void visitConstantPool(final ConstantPool obj)
127     {
128     }
129 
130     @Override
visitConstantString(final ConstantString obj)131     public void visitConstantString(final ConstantString obj)
132     {
133     }
134 
135     @Override
visitConstantUtf8(final ConstantUtf8 obj)136     public void visitConstantUtf8(final ConstantUtf8 obj)
137     {
138     }
139 
140     @Override
visitConstantValue(final ConstantValue obj)141     public void visitConstantValue(final ConstantValue obj)
142     {
143     }
144 
145     @Override
visitDeprecated(final Deprecated obj)146     public void visitDeprecated(final Deprecated obj)
147     {
148     }
149 
150     @Override
visitExceptionTable(final ExceptionTable obj)151     public void visitExceptionTable(final ExceptionTable obj)
152     {
153     }
154 
155     @Override
visitField(final Field obj)156     public void visitField(final Field obj)
157     {
158     }
159 
160     @Override
visitInnerClass(final InnerClass obj)161     public void visitInnerClass(final InnerClass obj)
162     {
163     }
164 
165     @Override
visitInnerClasses(final InnerClasses obj)166     public void visitInnerClasses(final InnerClasses obj)
167     {
168     }
169 
170     /**
171      * @since 6.0
172      */
173     @Override
visitBootstrapMethods(final BootstrapMethods obj)174     public void visitBootstrapMethods(final BootstrapMethods obj)
175     {
176     }
177 
178     @Override
visitJavaClass(final JavaClass obj)179     public void visitJavaClass(final JavaClass obj)
180     {
181     }
182 
183     @Override
visitLineNumber(final LineNumber obj)184     public void visitLineNumber(final LineNumber obj)
185     {
186     }
187 
188     @Override
visitLineNumberTable(final LineNumberTable obj)189     public void visitLineNumberTable(final LineNumberTable obj)
190     {
191     }
192 
193     @Override
visitLocalVariable(final LocalVariable obj)194     public void visitLocalVariable(final LocalVariable obj)
195     {
196     }
197 
198     @Override
visitLocalVariableTable(final LocalVariableTable obj)199     public void visitLocalVariableTable(final LocalVariableTable obj)
200     {
201     }
202 
203     @Override
visitMethod(final Method obj)204     public void visitMethod(final Method obj)
205     {
206     }
207 
208     @Override
visitSignature(final Signature obj)209     public void visitSignature(final Signature obj)
210     {
211     }
212 
213     @Override
visitSourceFile(final SourceFile obj)214     public void visitSourceFile(final SourceFile obj)
215     {
216     }
217 
218     @Override
visitSynthetic(final Synthetic obj)219     public void visitSynthetic(final Synthetic obj)
220     {
221     }
222 
223     @Override
visitUnknown(final Unknown obj)224     public void visitUnknown(final Unknown obj)
225     {
226     }
227 
228     @Override
visitStackMap(final StackMap obj)229     public void visitStackMap(final StackMap obj)
230     {
231     }
232 
233     @Override
visitStackMapEntry(final StackMapEntry obj)234     public void visitStackMapEntry(final StackMapEntry obj)
235     {
236     }
237 
238     /**
239      * @since 6.0
240     @Override
241     public void visitStackMapTable(StackMapTable obj)
242     {
243     }
244      */
245 
246     /**
247      * @since 6.0
248     @Override
249     public void visitStackMapTableEntry(StackMapTableEntry obj)
250     {
251     }
252      */
253 
254     /**
255      * @since 6.0
256      */
257     @Override
visitEnclosingMethod(final EnclosingMethod obj)258     public void visitEnclosingMethod(final EnclosingMethod obj)
259     {
260     }
261 
262     /**
263      * @since 6.0
264      */
265     @Override
visitLocalVariableTypeTable(final LocalVariableTypeTable obj)266     public void visitLocalVariableTypeTable(final LocalVariableTypeTable obj)
267     {
268     }
269 
270     /**
271      * @since 6.0
272      */
273     @Override
visitMethodParameters(final MethodParameters obj)274     public void visitMethodParameters(final MethodParameters obj)
275     {
276     }
277 
278     /**
279      * @since 6.0
280      */
281     @Override
visitConstantMethodType(final ConstantMethodType obj)282     public void visitConstantMethodType(final ConstantMethodType obj)
283     {
284     }
285 
286     /**
287      * @since 6.0
288      */
289     @Override
visitConstantMethodHandle(final ConstantMethodHandle constantMethodHandle)290     public void visitConstantMethodHandle(final ConstantMethodHandle constantMethodHandle) {
291     }
292 
293     /**
294      * @since 6.0
295      */
296     @Override
visitParameterAnnotationEntry(final ParameterAnnotationEntry parameterAnnotationEntry)297     public void visitParameterAnnotationEntry(final ParameterAnnotationEntry parameterAnnotationEntry) {
298     }
299 
300     /**
301      * @since 6.1
302      */
303     @Override
visitConstantPackage(final ConstantPackage constantPackage)304     public void visitConstantPackage(final ConstantPackage constantPackage) {
305     }
306 
307     /**
308      * @since 6.1
309      */
310     @Override
visitConstantModule(final ConstantModule constantModule)311     public void visitConstantModule(final ConstantModule constantModule) {
312     }
313 }
314