public class AnnotationElementValueGen extends ElementValueGen
ANNOTATION, ARRAY, CLASS, cpGen, ENUM_CONSTANT, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, STRING, type
Constructor | Description |
---|---|
AnnotationElementValueGen(int type,
AnnotationEntryGen annotation,
ConstantPoolGen cpool) |
|
AnnotationElementValueGen(AnnotationElementValue value,
ConstantPoolGen cpool,
boolean copyPoolEntries) |
|
AnnotationElementValueGen(AnnotationEntryGen a,
ConstantPoolGen cpool) |
Modifier and Type | Method | Description |
---|---|---|
void |
dump(java.io.DataOutputStream dos) |
|
AnnotationEntryGen |
getAnnotation() |
|
ElementValue |
getElementValue() |
Return immutable variant of this AnnotationElementValueGen
|
java.lang.String |
stringifyValue() |
copy, getConstantPool, getElementValueType, readElementValue
public AnnotationElementValueGen(AnnotationEntryGen a, ConstantPoolGen cpool)
public AnnotationElementValueGen(int type, AnnotationEntryGen annotation, ConstantPoolGen cpool)
public AnnotationElementValueGen(AnnotationElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)
public void dump(java.io.DataOutputStream dos) throws java.io.IOException
dump
in class ElementValueGen
java.io.IOException
public java.lang.String stringifyValue()
stringifyValue
in class ElementValueGen
public ElementValue getElementValue()
getElementValue
in class ElementValueGen
public AnnotationEntryGen getAnnotation()