1 25 26 package org.objectweb.easybeans.deployment.annotations.analyzer; 27 28 import java.util.ArrayList ; 29 import java.util.List ; 30 31 import org.objectweb.asm.AnnotationVisitor; 32 33 39 public abstract class ObjectArrayAnnotationVisitor<T, V> 40 extends AbsAnnotationVisitor<T> 41 implements AnnotationVisitor, AnnotationType { 42 43 46 private List <V> arrayObjects = null; 47 48 51 public void init() { 52 this.arrayObjects = new ArrayList <V>(); 53 } 54 55 59 public ObjectArrayAnnotationVisitor(final T annotationMetadata) { 60 super(annotationMetadata); 61 init(); 62 } 63 64 65 73 @Override 74 @SuppressWarnings ("unchecked") 75 public void visit(final String name, final Object value) { 76 this.arrayObjects.add((V) value); 77 } 78 79 82 public List <V> getArrayObjects() { 83 return this.arrayObjects; 84 } 85 86 } 87 | Popular Tags |