Class ParameterAnnotationsAttribute
- java.lang.Object
-
- org.jboss.classfilewriter.attributes.Attribute
-
- org.jboss.classfilewriter.annotations.ParameterAnnotationsAttribute
-
- All Implemented Interfaces:
WritableEntry
public class ParameterAnnotationsAttribute extends Attribute
A parameter annotations attribute
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParameterAnnotationsAttribute.Type
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.util.List<ClassAnnotation>>
annotations
private int
noParameters
-
Constructor Summary
Constructors Constructor Description ParameterAnnotationsAttribute(ParameterAnnotationsAttribute.Type type, ConstPool constPool, int noParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAnnotation(int parameter, java.lang.annotation.Annotation annotation)
void
addAnnotation(int parameter, ClassAnnotation annotation)
void
writeData(ByteArrayDataOutputStream stream)
-
-
-
Field Detail
-
annotations
private final java.util.Map<java.lang.Integer,java.util.List<ClassAnnotation>> annotations
-
noParameters
private final int noParameters
-
-
Constructor Detail
-
ParameterAnnotationsAttribute
public ParameterAnnotationsAttribute(ParameterAnnotationsAttribute.Type type, ConstPool constPool, int noParameters)
-
-
Method Detail
-
writeData
public void writeData(ByteArrayDataOutputStream stream) throws java.io.IOException
-
addAnnotation
public void addAnnotation(int parameter, java.lang.annotation.Annotation annotation)
-
addAnnotation
public void addAnnotation(int parameter, ClassAnnotation annotation)
-
-