classfilewriter 1.0.0.Final

org.jboss.classfilewriter.annotations
Class AnnotationsAttribute

java.lang.Object
  extended by org.jboss.classfilewriter.attributes.Attribute
      extended by org.jboss.classfilewriter.annotations.AnnotationsAttribute
All Implemented Interfaces:
WritableEntry

public class AnnotationsAttribute
extends Attribute

An annotations attribute

Author:
Stuart Douglas

Nested Class Summary
static class AnnotationsAttribute.Type
           
 
Field Summary
 
Fields inherited from class org.jboss.classfilewriter.attributes.Attribute
constPool
 
Constructor Summary
AnnotationsAttribute(AnnotationsAttribute.Type type, ConstPool constPool)
           
 
Method Summary
 void addAnnotation(Annotation annotation)
           
 void addAnnotation(ClassAnnotation annotation)
           
 void writeData(ByteArrayDataOutputStream stream)
           
 
Methods inherited from class org.jboss.classfilewriter.attributes.Attribute
getName, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationsAttribute

public AnnotationsAttribute(AnnotationsAttribute.Type type,
                            ConstPool constPool)
Method Detail

writeData

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

addAnnotation

public void addAnnotation(Annotation annotation)

addAnnotation

public void addAnnotation(ClassAnnotation annotation)

classfilewriter 1.0.0.Final

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