org.jboss.classfilewriter.annotations
Class AnnotationsAttribute
java.lang.Object
org.jboss.classfilewriter.attributes.Attribute
org.jboss.classfilewriter.annotations.AnnotationsAttribute
- All Implemented Interfaces:
- WritableEntry
public class AnnotationsAttribute
- extends Attribute
An annotations attribute
- Author:
- Stuart Douglas
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationsAttribute
public AnnotationsAttribute(AnnotationsAttribute.Type type,
ConstPool constPool)
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)
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.