|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.Annotation.ElementValuePair
Nested class representing name/value pair in an annotation structure.
| Field Summary | |
private AsciiConstant |
name
the pooled constant holding the name of the pair |
private AnnotElementValue |
value
the value of the pair |
| Constructor Summary | |
Annotation.ElementValuePair(String name,
AnnotElementValue value)
Construct a new element-value pair for an annotation structure. |
|
Annotation.ElementValuePair(ConstantPool cp,
DataInput in)
Construct an element-value pair in an annotation structure from a classfile stream. |
|
| Method Summary | |
protected int |
getSize()
Return the size in bytes of this element-value pair. |
String |
name()
Return the name of this element-value pair. |
(package private) void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool. |
String |
toString()
Return a string representation of this element-value pair. |
AnnotElementValue |
value()
Return the value of this element-value pair. |
(package private) void |
write(ConstantPool cp,
DataOutput out)
Write this element-value pair to a stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private AsciiConstant name
private AnnotElementValue value
| Constructor Detail |
public Annotation.ElementValuePair(String name,
AnnotElementValue value)
name - the name of the pairvalue - the value of the pair
public Annotation.ElementValuePair(ConstantPool cp,
DataInput in)
throws IOException,
ClassFileFormatException
cp - the constant poolin - the stream to read from
IOException - an IO exception has occured
ClassFileFormatException - the pair is malformed| 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 exception has occuredprotected int getSize()
public String toString()
toString in class Objectpublic AnnotElementValue value()
public String name()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||