Class AnnotationGen
java.lang.Object
org.aspectj.apache.bcel.classfile.annotation.AnnotationGen
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationGen
(AnnotationGen a, ConstantPool cpool, boolean copyPoolEntries) AnnotationGen
(ObjectType type, List<NameValuePair> pairs, boolean runtimeVisible, ConstantPool cpool) Retrieve an immutable version of this AnnotationGen -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dump
(DataOutputStream dos) int
boolean
hasNamedValue
(String name) boolean
hasNameValuePair
(String name, String value) boolean
static AnnotationGen
read
(DataInputStream dis, ConstantPool cpool, boolean b) toString()
-
Field Details
-
NO_ANNOTATIONS
-
-
Constructor Details
-
AnnotationGen
-
AnnotationGen
public AnnotationGen(ObjectType type, List<NameValuePair> pairs, boolean runtimeVisible, ConstantPool cpool) Retrieve an immutable version of this AnnotationGen
-
-
Method Details
-
read
public static AnnotationGen read(DataInputStream dis, ConstantPool cpool, boolean b) throws IOException - Throws:
IOException
-
dump
- Throws:
IOException
-
addElementNameValuePair
-
getTypeIndex
public int getTypeIndex() -
getTypeSignature
-
getTypeName
-
getValues
-
toString
-
toShortString
-
isRuntimeVisible
public boolean isRuntimeVisible() -
hasNameValuePair
-
hasNamedValue
- Returns:
- true if the annotation has a value with the specified name
-