Class AnnotationGen
- java.lang.Object
-
- org.aspectj.apache.bcel.classfile.annotation.AnnotationGen
-
- Direct Known Subclasses:
FakeAnnotation
public class AnnotationGen extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static AnnotationGen[]NO_ANNOTATIONS
-
Constructor Summary
Constructors Constructor Description AnnotationGen(AnnotationGen a, ConstantPool cpool, boolean copyPoolEntries)AnnotationGen(ObjectType type, List<NameValuePair> pairs, boolean runtimeVisible, ConstantPool cpool)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElementNameValuePair(NameValuePair evp)voiddump(DataOutputStream dos)intgetTypeIndex()StringgetTypeName()StringgetTypeSignature()List<NameValuePair>getValues()booleanhasNamedValue(String name)booleanhasNameValuePair(String name, String value)booleanisRuntimeVisible()static AnnotationGenread(DataInputStream dis, ConstantPool cpool, boolean b)StringtoShortString()StringtoString()
-
-
-
Field Detail
-
NO_ANNOTATIONS
public static final AnnotationGen[] NO_ANNOTATIONS
-
-
Constructor Detail
-
AnnotationGen
public AnnotationGen(AnnotationGen a, ConstantPool cpool, boolean copyPoolEntries)
-
AnnotationGen
public AnnotationGen(ObjectType type, List<NameValuePair> pairs, boolean runtimeVisible, ConstantPool cpool)
-
-
Method Detail
-
read
public static AnnotationGen read(DataInputStream dis, ConstantPool cpool, boolean b) throws IOException
- Throws:
IOException
-
dump
public void dump(DataOutputStream dos) throws IOException
- Throws:
IOException
-
addElementNameValuePair
public void addElementNameValuePair(NameValuePair evp)
-
getTypeIndex
public int getTypeIndex()
-
getTypeSignature
public String getTypeSignature()
-
getTypeName
public String getTypeName()
-
getValues
public List<NameValuePair> getValues()
-
toShortString
public String toShortString()
-
isRuntimeVisible
public boolean isRuntimeVisible()
-
hasNamedValue
public boolean hasNamedValue(String name)
-
-