|
mjc | ||||||||||
| 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.AnnotLongElementValue
A class representing a long value in an element-value pair of an annotation structure.
Annotation.ElementValuePair| Field Summary | |
private LongConstant |
value
the constant pool entry for this value |
| Constructor Summary | |
AnnotLongElementValue(long value)
Construct a new element-value with the given value. |
|
AnnotLongElementValue(ConstantPool cp,
DataInput in)
Construct a new element-value from a classfile stream. |
|
| 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. |
long |
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 LongConstant value
| Constructor Detail |
public AnnotLongElementValue(long value)
public AnnotLongElementValue(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 long value()
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||