public class AnnotationGen
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static AnnotationGen[] |
NO_ANNOTATIONS |
Constructor and Description |
---|
AnnotationGen(AnnotationGen a,
ConstantPool cpool,
boolean copyPoolEntries) |
AnnotationGen(ObjectType type,
java.util.List<NameValuePair> pairs,
boolean runtimeVisible,
ConstantPool cpool)
Retrieve an immutable version of this AnnotationGen
|
Modifier and Type | Method and Description |
---|---|
void |
addElementNameValuePair(NameValuePair evp) |
void |
dump(java.io.DataOutputStream dos) |
int |
getTypeIndex() |
java.lang.String |
getTypeName() |
java.lang.String |
getTypeSignature() |
java.util.List<NameValuePair> |
getValues() |
boolean |
hasNamedValue(java.lang.String name) |
boolean |
hasNameValuePair(java.lang.String name,
java.lang.String value) |
boolean |
isRuntimeVisible() |
static AnnotationGen |
read(java.io.DataInputStream dis,
ConstantPool cpool,
boolean b) |
java.lang.String |
toShortString() |
java.lang.String |
toString() |
public static final AnnotationGen[] NO_ANNOTATIONS
public AnnotationGen(AnnotationGen a, ConstantPool cpool, boolean copyPoolEntries)
public AnnotationGen(ObjectType type, java.util.List<NameValuePair> pairs, boolean runtimeVisible, ConstantPool cpool)
public static AnnotationGen read(java.io.DataInputStream dis, ConstantPool 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(NameValuePair evp)
public int getTypeIndex()
public java.lang.String getTypeSignature()
public java.lang.String getTypeName()
public java.util.List<NameValuePair> getValues()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toShortString()
public boolean isRuntimeVisible()
public boolean hasNameValuePair(java.lang.String name, java.lang.String value)
public boolean hasNamedValue(java.lang.String name)