Package org.apache.bcel.generic
Class AnnotationEntryGen
java.lang.Object
org.apache.bcel.generic.AnnotationEntryGen
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationEntryGen
(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, List elements, boolean vis, ConstantPoolGen cpool) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dump
(DataOutputStream dos) Retrieve an immutable version of this AnnotationGenint
final String
final String
Returns list of ElementNameValuePair objectsboolean
static AnnotationEntryGen
read
(DataInputStream dis, ConstantPoolGen cpool, boolean b) toString()
-
Constructor Details
-
AnnotationEntryGen
Here we are taking a fixed annotation of type Annotation and building a modifiable AnnotationGen object. If the pool passed in is for a different class file, then copyPoolEntries should have been passed as true as that will force us to do a deep copy of the annotation and move the cpool entries across. We need to copy the type and the element name value pairs and the visibility. -
AnnotationEntryGen
-
-
Method Details
-
getAnnotation
Retrieve an immutable version of this AnnotationGen -
read
public static AnnotationEntryGen read(DataInputStream dis, ConstantPoolGen cpool, boolean b) throws IOException - Throws:
IOException
-
dump
- Throws:
IOException
-
addElementNameValuePair
-
getTypeIndex
public int getTypeIndex() -
getTypeSignature
-
getTypeName
-
getValues
Returns list of ElementNameValuePair objects -
toString
-
toShortString
-
isRuntimeVisible
public boolean isRuntimeVisible()
-