1 30 package org.objectweb.asm.util; 31 32 import org.objectweb.asm.AnnotationVisitor; 33 import org.objectweb.asm.Attribute; 34 import org.objectweb.asm.FieldVisitor; 35 36 42 public class TraceFieldVisitor extends TraceAbstractVisitor implements 43 FieldVisitor 44 { 45 46 50 protected FieldVisitor fv; 51 52 public AnnotationVisitor visitAnnotation( 53 final String desc, 54 final boolean visible) 55 { 56 AnnotationVisitor av = super.visitAnnotation(desc, visible); 57 if (fv != null) { 58 ((TraceAnnotationVisitor) av).av = fv.visitAnnotation(desc, visible); 59 } 60 return av; 61 } 62 63 public void visitAttribute(final Attribute attr) { 64 super.visitAttribute(attr); 65 66 if (fv != null) { 67 fv.visitAttribute(attr); 68 } 69 } 70 71 public void visitEnd() { 72 super.visitEnd(); 73 74 if (fv != null) { 75 fv.visitEnd(); 76 } 77 } 78 } 79 | Popular Tags |