AnnotationVisitor that remaps types with a Remapper.
| Modifier and Type | Field and Description |
|---|---|
| protected final String | descriptor
The descriptor of the visited annotation. |
| protected final Remapper | remapper
The remapper used to remap the types in the visited annotation. |
| Access | Constructor and Description |
|---|---|
| public | AnnotationRemapper(final AnnotationVisitor
the annotation visitor this remapper must delegate to. annotationVisitor, final Remapper the remapper to use to remap the types in the visited annotation. remapper)
Deprecated
use
Constructs a new AnnotationRemapper(String, AnnotationVisitor, Remapper) instead.
AnnotationRemapper.
|
| public | AnnotationRemapper(final String
the descriptor of the visited annotation. May be null. descriptor, final AnnotationVisitor the annotation visitor this remapper must delegate to. annotationVisitor, final Remapper the remapper to use to remap the types in the visited annotation. remapper)Constructs a new |
| protected | AnnotationRemapper(final int
the ASM API version supported by this remapper. Must be one of the api, final AnnotationVisitor ASMx values in Opcodes.the annotation visitor this remapper must delegate to. annotationVisitor, final Remapper the remapper to use to remap the types in the visited annotation. remapper)
Deprecated
use
Constructs a new AnnotationRemapper(int, String, AnnotationVisitor, Remapper) instead.
AnnotationRemapper.
|
| protected | AnnotationRemapper(final int
the ASM API version supported by this remapper. Must be one of the api, final String ASMx values in Opcodes.the descriptor of the visited annotation. May be null. descriptor, final AnnotationVisitor the annotation visitor this remapper must delegate to. annotationVisitor, final Remapper the remapper to use to remap the types in the visited annotation. remapper)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| protected AnnotationVisitor | Returns: the newly created remapper.the AnnotationVisitor the remapper must delegate to. annotationVisitor)
Deprecated
use
Constructs a new remapper for annotations.
createAnnotationRemapper(String, AnnotationVisitor) instead.
|
| protected AnnotationVisitor | Returns: the newly created remapper.the descriptor of the visited annotation. descriptor, final AnnotationVisitor the AnnotationVisitor the remapper must delegate to. annotationVisitor)Constructs a new remapper for annotations. |
| private String | Returns: the new name of the annotation attribute.the name of the annotation attribute. name)Maps an annotation attribute name with the remapper. |
| pack-priv final AnnotationVisitor | Returns: either this object, or the given one.the result of a call to the deprecated
createAnnotationRemapper method. deprecatedAnnotationVisitor)Returns either this object, or the given one. |
| public void | visit(final String
the value name. name, final Object the actual value, whose type must be value)
Visits a primitive value of the annotation.
Byte, Boolean, Character, Short, Integer , Long, Float, Double,
String or Type of Type#OBJECT or Type#ARRAY sort. This
value can also be an array of byte, boolean, short, char, int, long, float or double values
(this is equivalent to using visitArray and visiting each array element in turn,
but is more convenient). |
| public AnnotationVisitor | visitAnnotation(final String
the value name. name, final String the class descriptor of the nested annotation class. descriptor)Overrides net. |
| public AnnotationVisitor | visitArray(final String
the value name. name)Overrides net. |
| public void | visitEnum(final String
the value name. name, final String the class descriptor of the enumeration class. descriptor, final String the actual enumeration value. value)Overrides net. |
| descriptor | back to summary |
|---|---|
| protected final String descriptor The descriptor of the visited annotation. May be null, for instance for AnnotationDefault. | |
| remapper | back to summary |
|---|---|
| protected final Remapper remapper The remapper used to remap the types in the visited annotation. | |
| AnnotationRemapper | back to summary |
|---|---|
| public AnnotationRemapper(final AnnotationVisitor annotationVisitor, final Remapper remapper)
Deprecated use Constructs a new
| |
| AnnotationRemapper | back to summary |
|---|---|
| public AnnotationRemapper(final String descriptor, final AnnotationVisitor annotationVisitor, final Remapper remapper) Constructs a new
| |
| AnnotationRemapper | back to summary |
|---|---|
| protected AnnotationRemapper(final int api, final AnnotationVisitor annotationVisitor, final Remapper remapper)
Deprecated use Constructs a new
| |
| AnnotationRemapper | back to summary |
|---|---|
| protected AnnotationRemapper(final int api, final String descriptor, final AnnotationVisitor annotationVisitor, final Remapper remapper) Constructs a new
| |
| createAnnotationRemapper | back to summary |
|---|---|
| protected AnnotationVisitor createAnnotationRemapper(final AnnotationVisitor annotationVisitor)
Deprecated use Constructs a new remapper for annotations. The default implementation of this method returns a
new
| |
| createAnnotationRemapper | back to summary |
|---|---|
| protected AnnotationVisitor createAnnotationRemapper(final String descriptor, final AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations. The default implementation of this method returns a
new
| |
| mapAnnotationAttributeName | back to summary |
|---|---|
| private String mapAnnotationAttributeName(final String name) Maps an annotation attribute name with the remapper. Returns the original name unchanged if the descriptor of the annotation is null. | |
| orDeprecatedValue | back to summary |
|---|---|
| pack-priv final AnnotationVisitor orDeprecatedValue(final AnnotationVisitor deprecatedAnnotationVisitor) Returns either this object, or the given one. If the given object is equal to the object returned by the default implementation of the deprecated createAnnotationRemapper method, meaning that this method has not been overridden (or only in minor ways, for instance to add logging), then we can return this object instead, supposed to have been created by the new createAnnotationRemapper method. Otherwise we must return the given object.
| |
| visit | back to summary |
|---|---|
| public void visit(final String name, final Object value) Overrides net. Doc from net. Visits a primitive value of the annotation.
| |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(final String name, final String descriptor) Overrides net. Doc from net. Visits a nested annotation value of the annotation.
| |
| visitArray | back to summary |
|---|---|
| public AnnotationVisitor visitArray(final String name) Overrides net. Doc from net. Visits an array value of the annotation. Note that arrays of primitive values (such as byte,
boolean, short, char, int, long, float or double) can be passed as value to
| |
| visitEnum | back to summary |
|---|---|
| public void visitEnum(final String name, final String descriptor, final String value) Overrides net. Doc from net. Visits an enumeration value of the annotation. | |