|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.Attribute
org.multijava.util.classfile.RuntimeVisibleParameterAnnotationsAttribute
A class representing a RuntimeVisibleParameterAnnotations attribute. VMS 4.8.16
| Field Summary | |
private ArrayList[] |
annotations
the parameter annotations |
private static AsciiConstant |
attr
|
(package private) static String |
tagString
|
| Constructor Summary | |
RuntimeVisibleParameterAnnotationsAttribute(DataInput in,
ConstantPool cp)
Constructs a RuntimeVisibleParameterAnnotations attribute from a classfile stream. |
|
RuntimeVisibleParameterAnnotationsAttribute(ArrayList[] annotations)
Create a new RuntimeVisibleParameterAnnotations attribute for a given array of annotations. |
|
| Method Summary | |
Annotation |
get(int param,
String name)
Return the annotation of a given type for the specified parameter given by its index, or null if no such annotation has been attached to the parameter. |
int |
getParameterCount()
Get the number of parameters as given in this attribute. |
protected int |
getSize()
Return the space in bytes used by this attribute in the classfile. |
protected int |
getTag()
Return the attribute's tag. |
protected void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool. |
protected void |
write(ConstantPool cp,
DataOutput out)
Write this attribute into the file (out) getting data position from the constant pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final String tagString
private static AsciiConstant attr
private ArrayList[] annotations
| Constructor Detail |
public RuntimeVisibleParameterAnnotationsAttribute(ArrayList[] annotations)
annotations - parameter annotations, reference is captured
public RuntimeVisibleParameterAnnotationsAttribute(DataInput in,
ConstantPool cp)
throws IOException,
ClassFileFormatException
in - the stream to read fromcp - the constant pool
IOException - an IO problem has occured
ClassFileFormatException - the classfile is malformed| Method Detail |
public int getParameterCount()
public Annotation get(int param,
String name)
param - the index of the desired parametername - the name of the annotation (i.e. the interface type)protected int getTag()
protected int getSize()
protected void resolveConstants(ConstantPool cp)
throws ClassFileFormatException
cp - the constant pool for this class
ClassFileFormatException
protected void write(ConstantPool cp,
DataOutput out)
throws IOException
cp - the constant pool that contain all dataout - the file where to write this object info
IOException - an io problem has occured
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||