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

java.lang.Object
  extended by com.bm.ejb3metadata.annotations.analyzer.AbsAnnotationVisitor<T>
      extended by com.bm.ejb3metadata.annotations.analyzer.ObjectAnnotationVisitor<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:
JavaxEjbApplicationExceptionVisitor, JavaxEjbLocalHomeVisitor, JavaxEjbRemoteHomeVisitor, JavaxEjbRemoveVisitor

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

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

Author:
Daniel Wiese

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 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

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.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.

getValue

public V getValue()
Returns:
value of the object


Copyright © 2008. All Rights Reserved.