org.objectweb.easybeans.deployment.annotations.analyzer
Class EnumAnnotationVisitor<T>

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.analyzer.AbsAnnotationVisitor<T>
      extended by org.objectweb.easybeans.deployment.annotations.analyzer.EnumAnnotationVisitor<T>
Type Parameters:
T - the ClassAnnotationMetadata or MethodAnnotationMetadata.
All Implemented Interfaces:
org.objectweb.asm.AnnotationVisitor, AnnotationType
Direct Known Subclasses:
JavaxEjbTransactionAttributeVisitor, JavaxEjbTransactionManagementVisitor

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

This class manages the handling of enum values.

Author:
Florent Benoit

Field Summary
private  java.lang.String value
          Value.
 
Constructor Summary
EnumAnnotationVisitor(T annotationMetadata)
          Constructor.
 
Method Summary
 java.lang.String getValue()
           
 void visitEnum(java.lang.String name, java.lang.String desc, java.lang.String value)
          Visits an enumeration value of the annotation.
 
Methods inherited from class org.objectweb.easybeans.deployment.annotations.analyzer.AbsAnnotationVisitor
getAnnotationMetadata, visit, visitAnnotation, visitArray, visitEnd
 
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
visit, visitAnnotation, visitArray, visitEnd
 
Methods inherited from interface org.objectweb.easybeans.deployment.annotations.analyzer.AnnotationType
getType
 

Field Detail

value

private java.lang.String value
Value.

Constructor Detail

EnumAnnotationVisitor

public EnumAnnotationVisitor(T annotationMetadata)
Constructor.

Parameters:
annotationMetadata - linked to a <T> metadata.
Method Detail

visitEnum

public void visitEnum(java.lang.String name,
                      java.lang.String desc,
                      java.lang.String value)
Visits an enumeration value of the annotation.

Specified by:
visitEnum in interface org.objectweb.asm.AnnotationVisitor
Overrides:
visitEnum in class AbsAnnotationVisitor<T>
Parameters:
name - the value name.
desc - the class descriptor of the enumeration class.
value - the actual enumeration value.

getValue

public java.lang.String getValue()
Returns:
value of the object