| Modifier and Type | Field and Description |
|---|---|
| private final ConstantPoolGen | |
| pack-priv static final AnnotationEntryGen[] | |
| private List | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | AnnotationEntryGen(final AnnotationEntry a, final ConstantPoolGen cpool, final boolean copyPoolEntries)
Here we are taking a fixed annotation of type Annotation and building a modifiable AnnotationGen object. |
| private | |
| public | AnnotationEntryGen(final ObjectType type, final List<ElementValuePairGen> elements, final boolean vis, final ConstantPoolGen cpool)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private List | |
| public void | |
| public AnnotationEntry | |
| pack-priv static Attribute[] | getAnnotationAttributes(final ConstantPoolGen
The constant pool gen where we can create the necessary name refs cp, final AnnotationEntryGen[] An array of AnnotationGen objects annotationEntryGens)Converts a list of AnnotationGen objects into a set of attributes that can be attached to the class file. |
| pack-priv static Attribute[] | getParameterAnnotationAttributes(final ConstantPoolGen cp, final List<AnnotationEntryGen>[] vec)
Annotations against a class are stored in one of four attribute kinds: - RuntimeVisibleParameterAnnotations - RuntimeInvisibleParameterAnnotations |
| public int | |
| public final String | |
| public final String | |
| public List | Returns: list of ElementNameValuePair objects.Returns list of ElementNameValuePair objects. |
| public boolean | |
| private void | |
| public static AnnotationEntryGen | |
| public String | |
| public String |
| cpool | back to summary |
|---|---|
| private final ConstantPoolGen cpool | |
| EMPTY_ARRAY | back to summary |
|---|---|
| pack-priv static final AnnotationEntryGen[] EMPTY_ARRAY | |
| evs | back to summary |
|---|---|
| private List<ElementValuePairGen> evs | |
| isRuntimeVisible | back to summary |
|---|---|
| private boolean isRuntimeVisible | |
| typeIndex | back to summary |
|---|---|
| private int typeIndex | |
| AnnotationEntryGen | back to summary |
|---|---|
| public AnnotationEntryGen(final AnnotationEntry a, final ConstantPoolGen cpool, final boolean copyPoolEntries) 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 | back to summary |
|---|---|
| private AnnotationEntryGen(final ConstantPoolGen cpool) | |
| AnnotationEntryGen | back to summary |
|---|---|
| public AnnotationEntryGen(final ObjectType type, final List<ElementValuePairGen> elements, final boolean vis, final ConstantPoolGen cpool) | |
| addElementNameValuePair | back to summary |
|---|---|
| public void addElementNameValuePair(final ElementValuePairGen evp) | |
| copyValues | back to summary |
|---|---|
| private List | |
| dump | back to summary |
|---|---|
| public void dump(final DataOutputStream dos) throws IOException | |
| getAnnotation | back to summary |
|---|---|
| public AnnotationEntry getAnnotation() Retrieve an immutable version of this AnnotationGen | |
| getAnnotationAttributes | back to summary |
|---|---|
| pack-priv static Attribute[] getAnnotationAttributes(final ConstantPoolGen cp, final AnnotationEntryGen[] annotationEntryGens) Converts a list of AnnotationGen objects into a set of attributes that can be attached to the class file.
| |
| getParameterAnnotationAttributes | back to summary |
|---|---|
| pack-priv static Attribute[] getParameterAnnotationAttributes(final ConstantPoolGen cp, final List<AnnotationEntryGen>[] vec) Annotations against a class are stored in one of four attribute kinds: - RuntimeVisibleParameterAnnotations - RuntimeInvisibleParameterAnnotations | |
| getTypeIndex | back to summary |
|---|---|
| public int getTypeIndex() | |
| getTypeName | back to summary |
|---|---|
| public final String getTypeName() | |
| getTypeSignature | back to summary |
|---|---|
| public final String getTypeSignature() | |
| getValues | back to summary |
|---|---|
| public List Returns list of ElementNameValuePair objects.
| |
| isRuntimeVisible | back to summary |
|---|---|
| public boolean isRuntimeVisible() | |
| isRuntimeVisible | back to summary |
|---|---|
| private void isRuntimeVisible(final boolean b) | |
| read | back to summary |
|---|---|
| public static AnnotationEntryGen read(final DataInput dis, final ConstantPoolGen cpool, final boolean b) throws IOException | |
| toShortString | back to summary |
|---|---|
| public String toShortString() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |