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  package org.apache.bcel.classfile;
18  
19  /**
20   * Visitor with empty method bodies, can be extended and used in conjunction with the DescendingVisitor class, e.g. By
21   * courtesy of David Spencer.
22   *
23   * @see DescendingVisitor
24   */
25  public class EmptyVisitor implements Visitor {
26      protected EmptyVisitor() {
27      }
28  
29      /**
30       * @since 6.0
31       */
32      @Override
33      public void visitAnnotation(final Annotations obj) {
34      }
35  
36      /**
37       * @since 6.0
38       */
39      @Override
40      public void visitAnnotationDefault(final AnnotationDefault obj) {
41      }
42  
43      /**
44       * @since 6.0
45       */
46      @Override
47      public void visitAnnotationEntry(final AnnotationEntry obj) {
48      }
49  
50      /**
51       * @since 6.0
52       */
53      @Override
54      public void visitBootstrapMethods(final BootstrapMethods obj) {
55      }
56  
57      @Override
58      public void visitCode(final Code obj) {
59      }
60  
61      @Override
62      public void visitCodeException(final CodeException obj) {
63      }
64  
65      @Override
66      public void visitConstantClass(final ConstantClass obj) {
67      }
68  
69      @Override
70      public void visitConstantDouble(final ConstantDouble obj) {
71      }
72  
73      /**
74       * @since 6.3
75       */
76      @Override
77      public void visitConstantDynamic(final ConstantDynamic obj) {
78      }
79  
80      @Override
81      public void visitConstantFieldref(final ConstantFieldref obj) {
82      }
83  
84      @Override
85      public void visitConstantFloat(final ConstantFloat obj) {
86      }
87  
88      @Override
89      public void visitConstantInteger(final ConstantInteger obj) {
90      }
91  
92      @Override
93      public void visitConstantInterfaceMethodref(final ConstantInterfaceMethodref obj) {
94      }
95  
96      @Override
97      public void visitConstantInvokeDynamic(final ConstantInvokeDynamic obj) {
98      }
99  
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 }