org.objectweb.easybeans.deployment.annotations.analyzer
Class ObjectArrayAnnotationVisitor<T,V>

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.analyzer.AbsAnnotationVisitor<T>
      extended by org.objectweb.easybeans.deployment.annotations.analyzer.ObjectArrayAnnotationVisitor<T,V>
Type Parameters:
T - the type of annotation metadata.
V - the type of class / erasure (for values).
All Implemented Interfaces:
org.objectweb.asm.AnnotationVisitor, AnnotationType
Direct Known Subclasses:
JavaxEjbInitVisitor, JavaxEjbLocalVisitor, JavaxEjbRemoteVisitor, JavaxInterceptorInterceptorsVisitor

public abstract class ObjectArrayAnnotationVisitor<T,V>
extends AbsAnnotationVisitor<T>
implements org.objectweb.asm.AnnotationVisitor, AnnotationType

This class manages the handling of Array[] type like String[] value().

Author:
Florent Benoit

Field Summary
private  java.util.List<V> arrayObjects
          Array.
 
Constructor Summary
ObjectArrayAnnotationVisitor(T annotationMetadata)
          Constructor.
 
Method Summary
 java.util.List<V> getArrayObjects()
           
 void init()
          Init method.
 void visit(java.lang.String name, java.lang.Object value)
          Visits a primitive value of the annotation.
 
Methods inherited from class org.objectweb.easybeans.deployment.annotations.analyzer.AbsAnnotationVisitor
getAnnotationMetadata, visitAnnotation, visitArray, visitEnd, visitEnum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.asm.AnnotationVisitor
visitAnnotation, visitArray, visitEnd, visitEnum
 
Methods inherited from interface org.objectweb.easybeans.deployment.annotations.analyzer.AnnotationType
getType
 

Field Detail

arrayObjects

private java.util.List<V> arrayObjects
Array.

Constructor Detail

ObjectArrayAnnotationVisitor

public ObjectArrayAnnotationVisitor(T annotationMetadata)
Constructor.

Parameters:
annotationMetadata - linked to an annotation metadata.
Method Detail

init

public void init()
Init method.


visit

public void visit(java.lang.String name,
                  java.lang.Object value)
Visits a primitive value of the annotation.

Specified by:
visit in interface org.objectweb.asm.AnnotationVisitor
Overrides:
visit in class AbsAnnotationVisitor<T>
Parameters:
name - the value name.
value - the actual value, whose type must be Byte, Boolean, Character, Short, Integer, Long, Float, Double, String or Type.

getArrayObjects

public java.util.List<V> getArrayObjects()
Returns:
list of objects