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   * @version $Id: EmptyVisitor.html 1018313 2017-09-18 09:03:04Z britter $
26   */
27  public class EmptyVisitor implements Visitor
28  {
29      protected EmptyVisitor()
30      {
31      }
32  
33      /**
34       * @since 6.0
35       */
36      @Override
37      public void visitAnnotation(final Annotations obj)
38      {
39      }
40  
41      /**
42       * @since 6.0
43       */
44      @Override
45      public void visitParameterAnnotation(final ParameterAnnotations obj)
46      {
47      }
48  
49      /**
50       * @since 6.0
51       */
52      @Override
53      public void visitAnnotationEntry(final AnnotationEntry obj)
54      {
55      }
56  
57      /**
58       * @since 6.0
59       */
60      @Override
61      public void visitAnnotationDefault(final AnnotationDefault obj)
62      {
63      }
64  
65      @Override
66      public void visitCode(final Code obj)
67      {
68      }
69  
70      @Override
71      public void visitCodeException(final CodeException obj)
72      {
73      }
74  
75      @Override
76      public void visitConstantClass(final ConstantClass obj)
77      {
78      }
79  
80      @Override
81      public void visitConstantDouble(final ConstantDouble obj)
82      {
83      }
84  
85      @Override
86      public void visitConstantFieldref(final ConstantFieldref obj)
87      {
88      }
89  
90      @Override
91      public void visitConstantFloat(final ConstantFloat obj)
92      {
93      }
94  
95      @Override
96      public void visitConstantInteger(final ConstantInteger obj)
97      {
98      }
99  
100     @Override
101     public void visitConstantInterfaceMethodref(final ConstantInterfaceMethodref obj)
102     {
103     }
104 
105     @Override
106     public void visitConstantInvokeDynamic(final ConstantInvokeDynamic obj)
107     {
108     }
109 
110     @Override
111     public void visitConstantLong(final ConstantLong obj)
112     {
113     }
114 
115     @Override
116     public void visitConstantMethodref(final ConstantMethodref obj)
117     {
118     }
119 
120     @Override
121     public void visitConstantNameAndType(final ConstantNameAndType obj)
122     {
123     }
124 
125     @Override
126     public void visitConstantPool(final ConstantPool obj)
127     {
128     }
129 
130     @Override
131     public void visitConstantString(final ConstantString obj)
132     {
133     }
134 
135     @Override
136     public void visitConstantUtf8(final ConstantUtf8 obj)
137     {
138     }
139 
140     @Override
141     public void visitConstantValue(final ConstantValue obj)
142     {
143     }
144 
145     @Override
146     public void visitDeprecated(final Deprecated obj)
147     {
148     }
149 
150     @Override
151     public void visitExceptionTable(final ExceptionTable obj)
152     {
153     }
154 
155     @Override
156     public void visitField(final Field obj)
157     {
158     }
159 
160     @Override
161     public void visitInnerClass(final InnerClass obj)
162     {
163     }
164 
165     @Override
166     public void visitInnerClasses(final InnerClasses obj)
167     {
168     }
169 
170     /**
171      * @since 6.0
172      */
173     @Override
174     public void visitBootstrapMethods(final BootstrapMethods obj)
175     {
176     }
177 
178     @Override
179     public void visitJavaClass(final JavaClass obj)
180     {
181     }
182 
183     @Override
184     public void visitLineNumber(final LineNumber obj)
185     {
186     }
187 
188     @Override
189     public void visitLineNumberTable(final LineNumberTable obj)
190     {
191     }
192 
193     @Override
194     public void visitLocalVariable(final LocalVariable obj)
195     {
196     }
197 
198     @Override
199     public void visitLocalVariableTable(final LocalVariableTable obj)
200     {
201     }
202 
203     @Override
204     public void visitMethod(final Method obj)
205     {
206     }
207 
208     @Override
209     public void visitSignature(final Signature obj)
210     {
211     }
212 
213     @Override
214     public void visitSourceFile(final SourceFile obj)
215     {
216     }
217 
218     @Override
219     public void visitSynthetic(final Synthetic obj)
220     {
221     }
222 
223     @Override
224     public void visitUnknown(final Unknown obj)
225     {
226     }
227 
228     @Override
229     public void visitStackMap(final StackMap obj)
230     {
231     }
232 
233     @Override
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
258     public void visitEnclosingMethod(final EnclosingMethod obj)
259     {
260     }
261 
262     /**
263      * @since 6.0
264      */
265     @Override
266     public void visitLocalVariableTypeTable(final LocalVariableTypeTable obj)
267     {
268     }
269 
270     /**
271      * @since 6.0
272      */
273     @Override
274     public void visitMethodParameters(final MethodParameters obj)
275     {
276     }
277 
278     /**
279      * @since 6.0
280      */
281     @Override
282     public void visitConstantMethodType(final ConstantMethodType obj)
283     {
284     }
285 
286     /**
287      * @since 6.0
288      */
289     @Override
290     public void visitConstantMethodHandle(final ConstantMethodHandle constantMethodHandle) {
291     }
292 
293     /**
294      * @since 6.0
295      */
296     @Override
297     public void visitParameterAnnotationEntry(final ParameterAnnotationEntry parameterAnnotationEntry) {
298     }
299 
300     /**
301      * @since 6.1
302      */
303     @Override
304     public void visitConstantPackage(final ConstantPackage constantPackage) {
305     }
306 
307     /**
308      * @since 6.1
309      */
310     @Override
311     public void visitConstantModule(final ConstantModule constantModule) {
312     }
313 }