public class AnnotationEntryGen extends Object
Constructor and Description |
---|
AnnotationEntryGen(AnnotationEntry a,
ConstantPoolGen cpool,
boolean copyPoolEntries)
Here we are taking a fixed annotation of type Annotation and building a
modifiable AnnotationGen object.
|
AnnotationEntryGen(ObjectType type,
List<ElementValuePairGen> elements,
boolean vis,
ConstantPoolGen cpool) |
Modifier and Type | Method and Description |
---|---|
void |
addElementNameValuePair(ElementValuePairGen evp) |
void |
dump(DataOutputStream dos) |
AnnotationEntry |
getAnnotation()
Retrieve an immutable version of this AnnotationGen
|
int |
getTypeIndex() |
String |
getTypeName() |
String |
getTypeSignature() |
List<ElementValuePairGen> |
getValues()
Returns list of ElementNameValuePair objects
|
boolean |
isRuntimeVisible() |
static AnnotationEntryGen |
read(DataInput dis,
ConstantPoolGen cpool,
boolean b) |
String |
toShortString() |
String |
toString() |
public AnnotationEntryGen(AnnotationEntry a, ConstantPoolGen cpool, boolean copyPoolEntries)
public AnnotationEntryGen(ObjectType type, List<ElementValuePairGen> elements, boolean vis, ConstantPoolGen cpool)
public AnnotationEntry getAnnotation()
public static AnnotationEntryGen read(DataInput dis, ConstantPoolGen cpool, boolean b) throws IOException
IOException
public void dump(DataOutputStream dos) throws IOException
IOException
public void addElementNameValuePair(ElementValuePairGen evp)
public int getTypeIndex()
public final String getTypeSignature()
public final String getTypeName()
public List<ElementValuePairGen> getValues()
public String toShortString()
public boolean isRuntimeVisible()
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.