View Javadoc

1   /*
2    * Copyright  2000-2004 The Apache Software Foundation
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License"); 
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License. 
15   *
16   */
17  package org.apache.bcel.classfile;
18  
19  /***
20   * Visitor with empty method bodies, can be extended and used in conjunction with the
21   * DescendingVisitor class, e.g.
22   *
23   * By courtesy of David Spencer.
24   *
25   * @see DescendingVisitor
26   * @version $Id: EmptyVisitor.java 388707 2006-03-25 05:40:28Z tcurdt $
27   * 
28   */
29  public class EmptyVisitor implements Visitor {
30  
31      protected EmptyVisitor() {
32      }
33  
34  
35      public void visitCode( Code obj ) {
36      }
37  
38  
39      public void visitCodeException( CodeException obj ) {
40      }
41  
42  
43      public void visitConstantClass( ConstantClass obj ) {
44      }
45  
46  
47      public void visitConstantDouble( ConstantDouble obj ) {
48      }
49  
50  
51      public void visitConstantFieldref( ConstantFieldref obj ) {
52      }
53  
54  
55      public void visitConstantFloat( ConstantFloat obj ) {
56      }
57  
58  
59      public void visitConstantInteger( ConstantInteger obj ) {
60      }
61  
62  
63      public void visitConstantInterfaceMethodref( ConstantInterfaceMethodref obj ) {
64      }
65  
66  
67      public void visitConstantLong( ConstantLong obj ) {
68      }
69  
70  
71      public void visitConstantMethodref( ConstantMethodref obj ) {
72      }
73  
74  
75      public void visitConstantNameAndType( ConstantNameAndType obj ) {
76      }
77  
78  
79      public void visitConstantPool( ConstantPool obj ) {
80      }
81  
82  
83      public void visitConstantString( ConstantString obj ) {
84      }
85  
86  
87      public void visitConstantUtf8( ConstantUtf8 obj ) {
88      }
89  
90  
91      public void visitConstantValue( ConstantValue obj ) {
92      }
93  
94  
95      public void visitDeprecated( Deprecated obj ) {
96      }
97  
98  
99      public void visitExceptionTable( ExceptionTable obj ) {
100     }
101 
102 
103     public void visitField( Field obj ) {
104     }
105 
106 
107     public void visitInnerClass( InnerClass obj ) {
108     }
109 
110 
111     public void visitInnerClasses( InnerClasses obj ) {
112     }
113 
114 
115     public void visitJavaClass( JavaClass obj ) {
116     }
117 
118 
119     public void visitLineNumber( LineNumber obj ) {
120     }
121 
122 
123     public void visitLineNumberTable( LineNumberTable obj ) {
124     }
125 
126 
127     public void visitLocalVariable( LocalVariable obj ) {
128     }
129 
130 
131     public void visitLocalVariableTable( LocalVariableTable obj ) {
132     }
133 
134 
135     public void visitMethod( Method obj ) {
136     }
137 
138 
139     public void visitSignature( Signature obj ) {
140     }
141 
142 
143     public void visitSourceFile( SourceFile obj ) {
144     }
145 
146 
147     public void visitSynthetic( Synthetic obj ) {
148     }
149 
150 
151     public void visitUnknown( Unknown obj ) {
152     }
153 
154 
155     public void visitStackMap( StackMap obj ) {
156     }
157 
158 
159     public void visitStackMapEntry( StackMapEntry obj ) {
160     }
161 }