1 25 26 package org.objectweb.easybeans.deployment.annotations.analyzer; 27 28 import org.objectweb.asm.AnnotationVisitor; 29 30 35 public abstract class AbsAnnotationVisitor<T> implements AnnotationVisitor, AnnotationType { 36 37 40 private T annotationMetadata; 41 42 45 public AbsAnnotationVisitor() { 46 47 } 48 49 53 public AbsAnnotationVisitor(final T annotationMetadata) { 54 this(); 55 this.annotationMetadata = annotationMetadata; 56 } 57 58 66 public void visit(final String name, final Object value) { 67 68 } 69 70 76 public void visitEnum(final String name, final String desc, final String value) { 77 78 } 79 80 88 public AnnotationVisitor visitAnnotation(final String name, final String desc) { 89 return this; 90 } 91 92 100 public AnnotationVisitor visitArray(final String name) { 101 return this; 102 } 103 104 107 public abstract void visitEnd(); 108 109 110 113 public T getAnnotationMetadata() { 114 return annotationMetadata; 115 } 116 117 118 119 } 120 | Popular Tags |