1 30 package org.objectweb.asm.commons; 31 32 import org.objectweb.asm.AnnotationVisitor; 33 import org.objectweb.asm.Attribute; 34 import org.objectweb.asm.ClassVisitor; 35 import org.objectweb.asm.FieldVisitor; 36 import org.objectweb.asm.Label; 37 import org.objectweb.asm.MethodVisitor; 38 39 44 public class EmptyVisitor implements 45 ClassVisitor, 46 FieldVisitor, 47 MethodVisitor, 48 AnnotationVisitor 49 { 50 51 public void visit( 52 int version, 53 int access, 54 String name, 55 String signature, 56 String superName, 57 String [] interfaces) 58 { 59 } 60 61 public void visitSource(String source, String debug) { 62 } 63 64 public void visitOuterClass(String owner, String name, String desc) { 65 } 66 67 public AnnotationVisitor visitAnnotation(String desc, boolean visible) { 68 return this; 69 } 70 71 public void visitAttribute(Attribute attr) { 72 } 73 74 public void visitInnerClass( 75 String name, 76 String outerName, 77 String innerName, 78 int access) 79 { 80 } 81 82 public FieldVisitor visitField( 83 int access, 84 String name, 85 String desc, 86 String signature, 87 Object value) 88 { 89 return this; 90 } 91 92 public MethodVisitor visitMethod( 93 int access, 94 String name, 95 String desc, 96 String signature, 97 String [] exceptions) 98 { 99 return this; 100 } 101 102 public void visitEnd() { 103 } 104 105 public AnnotationVisitor visitAnnotationDefault() { 106 return this; 107 } 108 109 public AnnotationVisitor visitParameterAnnotation( 110 int parameter, 111 String desc, 112 boolean visible) 113 { 114 return this; 115 } 116 117 public void visitCode() { 118 } 119 120 public void visitInsn(int opcode) { 121 } 122 123 public void visitIntInsn(int opcode, int operand) { 124 } 125 126 public void visitVarInsn(int opcode, int var) { 127 } 128 129 public void visitTypeInsn(int opcode, String desc) { 130 } 131 132 public void visitFieldInsn( 133 int opcode, 134 String owner, 135 String name, 136 String desc) 137 { 138 } 139 140 public void visitMethodInsn( 141 int opcode, 142 String owner, 143 String name, 144 String desc) 145 { 146 } 147 148 public void visitJumpInsn(int opcode, Label label) { 149 } 150 151 public void visitLabel(Label label) { 152 } 153 154 public void visitLdcInsn(Object cst) { 155 } 156 157 public void visitIincInsn(int var, int increment) { 158 } 159 160 public void visitTableSwitchInsn( 161 int min, 162 int max, 163 Label dflt, 164 Label labels[]) 165 { 166 } 167 168 public void visitLookupSwitchInsn(Label dflt, int keys[], Label labels[]) { 169 } 170 171 public void visitMultiANewArrayInsn(String desc, int dims) { 172 } 173 174 public void visitTryCatchBlock( 175 Label start, 176 Label end, 177 Label handler, 178 String type) 179 { 180 } 181 182 public void visitLocalVariable( 183 String name, 184 String desc, 185 String signature, 186 Label start, 187 Label end, 188 int index) 189 { 190 } 191 192 public void visitLineNumber(int line, Label start) { 193 } 194 195 public void visitMaxs(int maxStack, int maxLocals) { 196 } 197 198 public void visit(String name, Object value) { 199 } 200 201 public void visitEnum(String name, String desc, String value) { 202 } 203 204 public AnnotationVisitor visitAnnotation(String name, String desc) { 205 return this; 206 } 207 208 public AnnotationVisitor visitArray(String name) { 209 return this; 210 } 211 } 212 | Popular Tags |