Class ClassAnnotation
- java.lang.Object
-
- org.jboss.classfilewriter.annotations.ClassAnnotation
-
- All Implemented Interfaces:
WritableEntry
public class ClassAnnotation extends java.lang.Object implements WritableEntry
A bytecode representation of a java annotation
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AnnotationValue>
annotationValues
private java.lang.String
type
private int
typeIndex
-
Constructor Summary
Constructors Constructor Description ClassAnnotation(ConstPool constPool, java.lang.String type, java.util.List<AnnotationValue> annotationValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AnnotationValue>
getAnnotationValues()
java.lang.String
getType()
void
write(ByteArrayDataOutputStream stream)
-
-
-
Field Detail
-
type
private final java.lang.String type
-
typeIndex
private final int typeIndex
-
annotationValues
private final java.util.List<AnnotationValue> annotationValues
-
-
Constructor Detail
-
ClassAnnotation
public ClassAnnotation(ConstPool constPool, java.lang.String type, java.util.List<AnnotationValue> annotationValues)
-
-
Method Detail
-
write
public void write(ByteArrayDataOutputStream stream) throws java.io.IOException
- Specified by:
write
in interfaceWritableEntry
- Throws:
java.io.IOException
-
getType
public java.lang.String getType()
-
getAnnotationValues
public java.util.List<AnnotationValue> getAnnotationValues()
-
-