|
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.AnnotCharElementValue
A class representing a char 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 | |
AnnotCharElementValue(char value)
Construct a new element-value with the given value. |
|
AnnotCharElementValue(ConstantPool cp,
java.io.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. |
java.lang.String |
toString()
Return a textual representation of the value. |
char |
value()
Return the encapsulated value. |
(package private) void |
write(ConstantPool cp,
java.io.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 AnnotCharElementValue(char value)
public AnnotCharElementValue(ConstantPool cp,
java.io.DataInput in)
throws java.io.IOException
cp - the constant poolin - the input stream to read from
java.io.IOException - an IO exception has occurred| Method Detail |
void resolveConstants(ConstantPool cp)
cp - the constant pool for this class
void write(ConstantPool cp,
java.io.DataOutput out)
throws java.io.IOException
cp - the constant poolout - the output stream
java.io.IOException - an IO error has occurredint getSize()
public java.lang.String toString()
toString in class AnnotElementValuepublic char value()
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||