classfilewriter 1.0.0.Final

org.jboss.classfilewriter.annotations
Class EnumAnnotationValue

java.lang.Object
  extended by org.jboss.classfilewriter.annotations.AnnotationValue
      extended by org.jboss.classfilewriter.annotations.EnumAnnotationValue
All Implemented Interfaces:
WritableEntry

public class EnumAnnotationValue
extends AnnotationValue

An enum annotation value

Author:
Stuart Douglas

Constructor Summary
EnumAnnotationValue(ConstPool constPool, String name, Enum<?> value)
           
EnumAnnotationValue(ConstPool constPool, String name, String enumType, String enumValue)
           
 
Method Summary
 char getTag()
           
 void writeData(ByteArrayDataOutputStream stream)
           
 
Methods inherited from class org.jboss.classfilewriter.annotations.AnnotationValue
getName, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumAnnotationValue

public EnumAnnotationValue(ConstPool constPool,
                           String name,
                           Enum<?> value)

EnumAnnotationValue

public EnumAnnotationValue(ConstPool constPool,
                           String name,
                           String enumType,
                           String enumValue)
Method Detail

getTag

public char getTag()
Specified by:
getTag in class AnnotationValue

writeData

public void writeData(ByteArrayDataOutputStream stream)
               throws IOException
Specified by:
writeData in class AnnotationValue
Throws:
IOException

classfilewriter 1.0.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.