com.bm.ejb3metadata.annotations.analyzer
Class ObjectArrayAnnotationVisitor<T,V>

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

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

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

Author:
Daniel Wiese

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 com.bm.ejb3metadata.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.ejb3unit.asm.jar.AnnotationVisitor
visitAnnotation, visitArray, visitEnd, visitEnum
 
Methods inherited from interface com.bm.ejb3metadata.annotations.analyzer.AnnotationType
getType
 

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.ejb3unit.asm.jar.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 org.ejb3unit.asm.Type.

getArrayObjects

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


Copyright © 2008. All Rights Reserved.