View Javadoc

1   /*
2    * Copyright 2001-2005 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 net.sf.mavenizer.analyser.asm;
18  
19  import org.objectweb.asm.AnnotationVisitor;
20  import org.objectweb.asm.Attribute;
21  import org.objectweb.asm.Label;
22  import org.objectweb.asm.signature.SignatureVisitor;
23  
24  
25  /***
26   * @author <a href="mailto:cedric-vidal@users.sourceforge.net">C&eacute;dric Vidal</a>
27   *
28   */
29  public abstract class AbstractDependencyVisitor implements DependencyVisitor {
30  
31  	// ClassVisitor
32  
33  	public void visitAttribute(final Attribute attr) {
34  	}
35  
36  	public void visitSource(final String source, final String debug) {
37  	}
38  
39  	// MethodVisitor
40  
41  	public AnnotationVisitor visitAnnotationDefault() {
42  		return this;
43  	}
44  
45  	public void visitCode() {
46  	}
47  
48  	public void visitFrame(final int type, final int nLocal,
49  			final Object[] local, final int nStack, final Object[] stack) {
50  	}
51  
52  	public void visitInsn(final int opcode) {
53  	}
54  
55  	public void visitIntInsn(final int opcode, final int operand) {
56  	}
57  
58  	public void visitVarInsn(final int opcode, final int var) {
59  	}
60  
61  	public void visitJumpInsn(final int opcode, final Label label) {
62  	}
63  
64  	public void visitLabel(final Label label) {
65  	}
66  
67  	public void visitIincInsn(final int var, final int increment) {
68  	}
69  
70  	public void visitTableSwitchInsn(final int min, final int max,
71  			final Label dflt, final Label[] labels) {
72  	}
73  
74  	public void visitLookupSwitchInsn(final Label dflt, final int[] keys,
75  			final Label[] labels) {
76  	}
77  
78  	public void visitLineNumber(final int line, final Label start) {
79  	}
80  
81  	public void visitMaxs(final int maxStack, final int maxLocals) {
82  	}
83  
84  	// AnnotationVisitor
85  
86  	public AnnotationVisitor visitArray(final String name) {
87  		return this;
88  	}
89  
90  	// SignatureVisitor
91  
92  	public void visitFormalTypeParameter(final String name) {
93  	}
94  
95  	public SignatureVisitor visitClassBound() {
96  		return this;
97  	}
98  
99  	public SignatureVisitor visitInterfaceBound() {
100 		return this;
101 	}
102 
103 	public SignatureVisitor visitSuperclass() {
104 		return this;
105 	}
106 
107 	public SignatureVisitor visitInterface() {
108 		return this;
109 	}
110 
111 	public SignatureVisitor visitParameterType() {
112 		return this;
113 	}
114 
115 	public SignatureVisitor visitReturnType() {
116 		return this;
117 	}
118 
119 	public SignatureVisitor visitExceptionType() {
120 		return this;
121 	}
122 
123 	public void visitBaseType(final char descriptor) {
124 	}
125 
126 	public SignatureVisitor visitArrayType() {
127 		return this;
128 	}
129 
130 	public void visitTypeArgument() {
131 	}
132 
133 	public SignatureVisitor visitTypeArgument(final char wildcard) {
134 		return this;
135 	}
136 
137 	// common
138 
139 	public void visitEnd() {
140 	}
141 
142 }