View Javadoc
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   */
26  public class EmptyVisitor implements Visitor
27  {
28      protected EmptyVisitor()
29      {
30      }
31  
32      /**
33       * @since 6.0
34       */
35      @Override
36      public void visitAnnotation(final Annotations obj)
37      {
38      }
39  
40      /**
41       * @since 6.0
42       */
43      @Override
44      public void visitParameterAnnotation(final ParameterAnnotations obj)
45      {
46      }
47  
48      /**
49       * @since 6.0
50       */
51      @Override
52      public void visitAnnotationEntry(final AnnotationEntry obj)
53      {
54      }
55  
56      /**
57       * @since 6.0
58       */
59      @Override
60      public void visitAnnotationDefault(final AnnotationDefault obj)
61      {
62      }
63  
64      @Override
65      public void visitCode(final Code obj)
66      {
67      }
68  
69      @Override
70      public void visitCodeException(final CodeException obj)
71      {
72      }
73  
74      @Override
75      public void visitConstantClass(final ConstantClass obj)
76      {
77      }
78  
79      @Override
80      public void visitConstantDouble(final ConstantDouble obj)
81      {
82      }
83  
84      @Override
85      public void visitConstantFieldref(final ConstantFieldref obj)
86      {
87      }
88  
89      @Override
90      public void visitConstantFloat(final ConstantFloat obj)
91      {
92      }
93  
94      @Override
95      public void visitConstantInteger(final ConstantInteger obj)
96      {
97      }
98  
99      @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 }