1 30 31 package oracle.toplink.libraries.asm; 32 33 41 42 public class ClassAdapter implements ClassVisitor { 43 44 48 49 protected ClassVisitor cv; 50 51 56 57 public ClassAdapter (final ClassVisitor cv) { 58 this.cv = cv; 59 } 60 61 public void visit ( 62 final int version, 63 final int access, 64 final String name, 65 final String superName, 66 final String [] interfaces, 67 final String sourceFile) 68 { 69 cv.visit(version, access, name, superName, interfaces, sourceFile); 70 } 71 72 public void visitInnerClass ( 73 final String name, 74 final String outerName, 75 final String innerName, 76 final int access) 77 { 78 cv.visitInnerClass(name, outerName, innerName, access); 79 } 80 81 public void visitField ( 82 final int access, 83 final String name, 84 final String desc, 85 final Object value, 86 final Attribute attrs) 87 { 88 cv.visitField(access, name, desc, value, attrs); 89 } 90 91 public CodeVisitor visitMethod ( 92 final int access, 93 final String name, 94 final String desc, 95 final String [] exceptions, 96 final Attribute attrs) 97 { 98 return new CodeAdapter(cv.visitMethod(access, name, desc, exceptions, attrs)); 99 } 100 101 public void visitAttribute (final Attribute attr) { 102 cv.visitAttribute(attr); 103 } 104 105 public void visitEnd () { 106 cv.visitEnd(); 107 } 108 } 109 | Popular Tags |