|
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.AnnotBooleanElementValue
A class representing a boolean 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 | |
AnnotBooleanElementValue(boolean value)
Construct a new element-value with the given value. |
|
AnnotBooleanElementValue(ConstantPool cp,
DataInput in)
Construct a new element-value from a classfile stream. |
|
| Method Summary | |
int |
getSize()
Return the size in bytes that this value takes up in the class file (not including the tag). |
void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool. |
String |
toString()
Return a textual representation of the value. |
boolean |
value()
Return the encapsulated value. |
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 AnnotBooleanElementValue(boolean value)
public AnnotBooleanElementValue(ConstantPool cp,
DataInput in)
throws IOException
cp - the constant poolin - the input stream to read from
IOException - an IO exception has occurred| Method Detail |
public void resolveConstants(ConstantPool cp)
cp - the constant pool for this class
public void write(ConstantPool cp,
DataOutput out)
throws IOException
cp - the constant poolout - the output stream
IOException - an IO error has occurredpublic int getSize()
public String toString()
toString in class AnnotElementValuepublic boolean value()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||