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 static AnnotationEntryGen read(DataInput dis, ConstantPoolGen cpool, boolean b) throws IOException
IOException
public void addElementNameValuePair(ElementValuePairGen evp)
public void dump(DataOutputStream dos) throws IOException
IOException
public AnnotationEntry getAnnotation()
public int getTypeIndex()
public final String getTypeName()
public final String getTypeSignature()
public List<ElementValuePairGen> getValues()
public boolean isRuntimeVisible()
public String toShortString()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.