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 and Description |
|---|
AnnotationElementValueGen(AnnotationElementValue value,
ConstantPoolGen cpool,
boolean copyPoolEntries) |
AnnotationElementValueGen(AnnotationEntryGen a,
ConstantPoolGen cpool) |
AnnotationElementValueGen(int type,
AnnotationEntryGen annotation,
ConstantPoolGen cpool) |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(DataOutputStream dos) |
AnnotationEntryGen |
getAnnotation() |
ElementValue |
getElementValue()
Return immutable variant of this AnnotationElementValueGen
|
String |
stringifyValue() |
copy, getConstantPool, getElementValueType, readElementValuepublic AnnotationElementValueGen(AnnotationElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)
public AnnotationElementValueGen(AnnotationEntryGen a, ConstantPoolGen cpool)
public AnnotationElementValueGen(int type, AnnotationEntryGen annotation, ConstantPoolGen cpool)
public void dump(DataOutputStream dos) throws IOException
dump in class ElementValueGenIOExceptionpublic AnnotationEntryGen getAnnotation()
public ElementValue getElementValue()
getElementValue in class ElementValueGenpublic String stringifyValue()
stringifyValue in class ElementValueGenCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.