1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.tonicsystems.jarjar;
17
18 import org.objectweb.asm.AnnotationVisitor;
19 import org.objectweb.asm.ClassVisitor;
20 import org.objectweb.asm.FieldVisitor;
21 import org.objectweb.asm.MethodVisitor;
22 import org.objectweb.asm.Opcodes;
23
24
25
26
27
28 public class EmptyClassVisitor extends ClassVisitor {
29
30 public EmptyClassVisitor() {
31 super(Opcodes.ASM4);
32 }
33
34 @Override
35 public MethodVisitor visitMethod(int access, String name, String desc,
36 String signature, String[] exceptions) {
37 return new MethodVisitor(Opcodes.ASM4) {};
38 }
39
40 @Override
41 public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
42 return new AnnotationVisitor(Opcodes.ASM4) {};
43 }
44
45 @Override
46 public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) {
47 return new FieldVisitor(Opcodes.ASM4) {};
48 }
49
50 }