|
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 java.util.ArrayList |
annotations
the runtime-visisble annotations |
private static AsciiConstant |
attr
|
(package private) static java.lang.String |
tagString
|
| Constructor Summary | |
RuntimeVisibleAnnotationsAttribute(java.io.DataInput in,
ConstantPool cp)
Construct a new RuntimeVisibleAnnotations attribute from a classfile stream. |
|
RuntimeVisibleAnnotationsAttribute(java.util.ArrayList annotations)
Create a new RuntimeVisibleAnnotations attribute for the given runtime-visible annotations. |
|
| Method Summary | |
Annotation |
get(java.lang.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,
java.io.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 java.lang.String tagString
private static AsciiConstant attr
private java.util.ArrayList annotations
| Constructor Detail |
public RuntimeVisibleAnnotationsAttribute(java.util.ArrayList annotations)
annotations - the runtime-visible annotations, this reference
is captured
public RuntimeVisibleAnnotationsAttribute(java.io.DataInput in,
ConstantPool cp)
throws java.io.IOException,
ClassFileFormatException
in - the stream to read fromcp - the constant pool
java.io.IOException - an IO problem has occured
ClassFileFormatException - the classfile is malformed| Method Detail |
public Annotation get(java.lang.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,
java.io.DataOutput out)
throws java.io.IOException
cp - the constant pool that contain all dataout - the file where to write this object info
java.io.IOException - an io problem has occured
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||