public class AnnotationEntryGen
extends java.lang.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,
java.util.List<ElementValuePairGen> elements,
boolean vis,
ConstantPoolGen cpool) |
Modifier and Type | Method and Description |
---|---|
void |
addElementNameValuePair(ElementValuePairGen evp) |
void |
dump(java.io.DataOutputStream dos) |
AnnotationEntry |
getAnnotation()
Retrieve an immutable version of this AnnotationGen
|
int |
getTypeIndex() |
java.lang.String |
getTypeName() |
java.lang.String |
getTypeSignature() |
java.util.List<ElementValuePairGen> |
getValues()
Returns list of ElementNameValuePair objects
|
boolean |
isRuntimeVisible() |
static AnnotationEntryGen |
read(java.io.DataInputStream dis,
ConstantPoolGen cpool,
boolean b) |
java.lang.String |
toShortString() |
java.lang.String |
toString() |
public AnnotationEntryGen(AnnotationEntry a, ConstantPoolGen cpool, boolean copyPoolEntries)
public AnnotationEntryGen(ObjectType type, java.util.List<ElementValuePairGen> elements, boolean vis, ConstantPoolGen cpool)
public AnnotationEntry getAnnotation()
public static AnnotationEntryGen read(java.io.DataInputStream dis, ConstantPoolGen cpool, boolean b) throws java.io.IOException
java.io.IOException
public void dump(java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
public void addElementNameValuePair(ElementValuePairGen evp)
public int getTypeIndex()
public final java.lang.String getTypeSignature()
public final java.lang.String getTypeName()
public java.util.List<ElementValuePairGen> getValues()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toShortString()
public boolean isRuntimeVisible()