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, 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(DataOutputStream dos) throws IOException
dump
in class ElementValueGen
IOException
public String stringifyValue()
stringifyValue
in class ElementValueGen
public ElementValue getElementValue()
getElementValue
in class ElementValueGen
public AnnotationEntryGen getAnnotation()
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.