|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.AnnotElementValue
org.multijava.util.classfile.AnnotShortElementValue
A class representing a short value in an element-value pair of an annotation structure.
Annotation.ElementValuePair| Field Summary | |
private IntegerConstant |
value
the constant pool entry for this value |
| Constructor Summary | |
AnnotShortElementValue(ConstantPool cp,
DataInput in)
Construct a new element-value from a classfile stream. |
|
AnnotShortElementValue(short value)
Construct a new element-value with the given value. |
|
| Method Summary | |
(package private) int |
getSize()
Return the size in bytes that this value takes up in the class file (not including the tag). |
(package private) void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool. |
String |
toString()
Return a textual representation of the value. |
short |
value()
Return the encapsulated value. |
(package private) void |
write(ConstantPool cp,
DataOutput out)
Write this value to a classfile stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private IntegerConstant value
| Constructor Detail |
public AnnotShortElementValue(short value)
public AnnotShortElementValue(ConstantPool cp,
DataInput in)
throws IOException
cp - the constant poolin - the input stream to read from
IOException - an IO exception has occurred| Method Detail |
void resolveConstants(ConstantPool cp)
cp - the constant pool for this class
void write(ConstantPool cp,
DataOutput out)
throws IOException
cp - the constant poolout - the output stream
IOException - an IO error has occurredint getSize()
public String toString()
toString in class AnnotElementValuepublic short value()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||