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

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.analyzer.AbsAnnotationVisitor<T>
      extended by org.objectweb.easybeans.deployment.annotations.analyzer.ObjectAnnotationVisitor<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:
JavaxEjbApplicationExceptionVisitor, JavaxEjbLocalHomeVisitor, JavaxEjbRemoteHomeVisitor, JavaxEjbRemoveVisitor, JavaxEjbStatefulVisitor, JavaxEjbStatelessVisitor

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

This class manages the handling of single type like String name().

Author:
Florent Benoit

Field Summary
private  V value
          Internal value in the given type.
 
Constructor Summary
ObjectAnnotationVisitor(T annotationMetadata)
          Constructor.
 
Method Summary
 V getValue()
           
 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

value

private V value
Internal value in the given type.

Constructor Detail

ObjectAnnotationVisitor

public ObjectAnnotationVisitor(T annotationMetadata)
Constructor.

Parameters:
annotationMetadata - linked to a metadata.
Method Detail

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.

getValue

public V getValue()
Returns:
value of the object