|
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.RuntimeVisibleAnnotationsAttribute
A class representing a RuntimeVisibleAnnotations attribute. VMS 4.8.14
| Field Summary | |
private ArrayList |
annotations
the runtime-visisble annotations |
private static AsciiConstant |
attr
|
(package private) static String |
tagString
|
| Constructor Summary | |
RuntimeVisibleAnnotationsAttribute(DataInput in,
ConstantPool cp)
Construct a new RuntimeVisibleAnnotations attribute from a classfile stream. |
|
RuntimeVisibleAnnotationsAttribute(ArrayList annotations)
Create a new RuntimeVisibleAnnotations attribute for the given runtime-visible annotations. |
|
| Method Summary | |
Annotation |
get(String name)
Return the annotation given by the name, or null if no such annotation has been attached to the element. |
protected int |
getSize()
Returns the space in bytes used by this attribute in the classfile. |
protected int |
getTag()
Returns 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 RuntimeVisibleAnnotationsAttribute(ArrayList annotations)
annotations - the runtime-visible annotations, this reference
is captured
public RuntimeVisibleAnnotationsAttribute(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 Annotation get(String name)
protected int getTag()
protected int getSize()
protected void resolveConstants(ConstantPool cp)
cp - the constant pool for this class
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 | ||||||||||