Top Description Inners Fields Constructors Methods
org.jboss.classfilewriter.annotations

public Class AnnotationsAttribute

extends Attribute
Class Inheritance
Imports
org.jboss.classfilewriter.attributes.Attribute, org.jboss.classfilewriter.constpool.ConstPool, org.jboss.classfilewriter.util.ByteArrayDataOutputStream, .LazySize, java.io.IOException, java.lang.annotation.Annotation, java.util.ArrayList, .List

An annotations attribute
Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final List<ClassAnnotation>
Inherited from org.jboss.classfilewriter.attributes.Attribute:
constPool

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
Inherited from org.jboss.classfilewriter.attributes.Attribute:
getNamewrite

Field Detail

annotationsback to summary
private final List<ClassAnnotation> annotations

Constructor Detail

AnnotationsAttributeback to summary
public AnnotationsAttribute(AnnotationsAttribute.Type type, ConstPool constPool)

Method Detail

addAnnotationback to summary
public void addAnnotation(Annotation annotation)
addAnnotationback to summary
public void addAnnotation(ClassAnnotation annotation)
writeDataback to summary
public void writeData(ByteArrayDataOutputStream stream) throws IOException

Implements abstract org.jboss.classfilewriter.attributes.Attribute.writeData.

Annotations
@Override
org.jboss.classfilewriter.annotations back to summary

public final Enum AnnotationsAttribute.Type

extends Enum<AnnotationsAttribute.Type>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final AnnotationsAttribute.Type
public static final AnnotationsAttribute.Type
private final String

Constructor Summary

AccessConstructor and Description
private
Type(String tag)

Method Summary

Modifier and TypeMethod and Description
public String
public static AnnotationsAttribute.Type
public static AnnotationsAttribute.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

RUNTIME_INVISIBLEback to summary
public static final AnnotationsAttribute.Type RUNTIME_INVISIBLE
RUNTIME_VISIBLEback to summary
public static final AnnotationsAttribute.Type RUNTIME_VISIBLE
tagback to summary
private final String tag

Constructor Detail

Typeback to summary
private Type(String tag)

Method Detail

getTagback to summary
public String getTag()
valueOfback to summary
public static AnnotationsAttribute.Type valueOf(String name)
valuesback to summary
public static AnnotationsAttribute.Type[] values()