public abstract class ParameterAnnotationsAttr extends Attribute
AnnotationsAttrCODE, CONSTANT_VALUE, DEPRECATED, ENCLOSING_METHOD, EXCEPTIONS, INNER_CLASSES, LINE_NUMBER_TABLE, LOCAL_VARIABLE_TABLE, RUNTIME_INVISIBLE_ANNOTATIONS, RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS, RUNTIME_VISIBLE_ANNOTATIONS, RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS, SIGNATURE, SOURCE_FILE, STACK_MAP_TABLE, SYNTHETIC| Constructor and Description |
|---|
ParameterAnnotationsAttr(ConstantPool cp,
String name) |
ParameterAnnotationsAttr(ConstantPool cp,
String name,
int length,
DataInput din) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(int parameter,
Annotation annotation) |
Annotation[][] |
getAnnotations()
First array index is zero-based parameter number.
|
Annotation[] |
getAnnotations(int parameter) |
int |
getLength()
Returns the length (in bytes) of this attribute in the class file.
|
int |
getParameterCount() |
void |
writeDataTo(DataOutput dout)
Write just the attribute specific data.
|
getAttributes, getConstantPool, getName, getNameConstant, readFrom, skipBytes, writeTopublic ParameterAnnotationsAttr(ConstantPool cp, String name)
public ParameterAnnotationsAttr(ConstantPool cp, String name, int length, DataInput din) throws IOException
IOExceptionpublic Annotation[][] getAnnotations()
public int getParameterCount()
public Annotation[] getAnnotations(int parameter)
parameter - zero-based parameter numberpublic void addAnnotation(int parameter,
Annotation annotation)
parameter - zero-based parameter numberpublic int getLength()
Attributepublic void writeDataTo(DataOutput dout) throws IOException
AttributewriteDataTo in class AttributeIOExceptionCopyright © 2004-2015 Cojen. All Rights Reserved.