Class AnnotationGen
java.lang.Object
org.aspectj.apache.bcel.classfile.annotation.AnnotationGen
- Direct Known Subclasses:
FakeAnnotation
-
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 TypeMethodDescriptionvoidvoiddump(DataOutputStream dos) intbooleanhasNamedValue(String name) booleanhasNameValuePair(String name, String value) booleanstatic AnnotationGenread(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
- Returns:
- true if the annotation has a value with the specified name and (toString'd) value
-
hasNamedValue
- Returns:
- true if the annotation has a value with the specified name
-