Package org.objectweb.asm.commons
Class AnnotationRemapper
java.lang.Object
org.objectweb.asm.AnnotationVisitor
org.objectweb.asm.commons.AnnotationRemapper
public class AnnotationRemapper
extends org.objectweb.asm.AnnotationVisitor
An
AnnotationVisitor that remaps types with a Remapper.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringThe descriptor of the visited annotation.protected final RemapperThe remapper used to remap the types in the visited annotation.Fields inherited from class org.objectweb.asm.AnnotationVisitor
api, av -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAnnotationRemapper(int api, String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper) Constructs a newAnnotationRemapper.protectedAnnotationRemapper(int api, org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper) Deprecated.AnnotationRemapper(String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper) Constructs a newAnnotationRemapper.AnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.objectweb.asm.AnnotationVisitorcreateAnnotationRemapper(String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected org.objectweb.asm.AnnotationVisitorcreateAnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor) Deprecated.usecreateAnnotationRemapper(String, AnnotationVisitor)instead.voidorg.objectweb.asm.AnnotationVisitorvisitAnnotation(String name, String descriptor) org.objectweb.asm.AnnotationVisitorvisitArray(String name) voidMethods inherited from class org.objectweb.asm.AnnotationVisitor
getDelegate, visitEnd
-
Field Details
-
descriptor
The descriptor of the visited annotation. May be null, for instance for AnnotationDefault. -
remapper
The remapper used to remap the types in the visited annotation.
-
-
Constructor Details
-
AnnotationRemapper
@Deprecated public AnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper) Deprecated.Constructs a newAnnotationRemapper. Subclasses must not use this constructor. Instead, they must use theAnnotationRemapper(int,AnnotationVisitor,Remapper)version.- Parameters:
annotationVisitor- the annotation visitor this remapper must delegate to.remapper- the remapper to use to remap the types in the visited annotation.
-
AnnotationRemapper
public AnnotationRemapper(String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper) Constructs a newAnnotationRemapper. Subclasses must not use this constructor. Instead, they must use theAnnotationRemapper(int,String,AnnotationVisitor,Remapper)version.- Parameters:
descriptor- the descriptor of the visited annotation. May be null.annotationVisitor- the annotation visitor this remapper must delegate to.remapper- the remapper to use to remap the types in the visited annotation.
-
AnnotationRemapper
@Deprecated protected AnnotationRemapper(int api, org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper) Deprecated.Constructs a newAnnotationRemapper.- Parameters:
api- the ASM API version supported by this remapper. Must be one of theASMx values inOpcodes.annotationVisitor- the annotation visitor this remapper must delegate to.remapper- the remapper to use to remap the types in the visited annotation.
-
AnnotationRemapper
protected AnnotationRemapper(int api, String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper) Constructs a newAnnotationRemapper.- Parameters:
api- the ASM API version supported by this remapper. Must be one of theASMx values inOpcodes.descriptor- the descriptor of the visited annotation. May be null.annotationVisitor- the annotation visitor this remapper must delegate to.remapper- the remapper to use to remap the types in the visited annotation.
-
-
Method Details
-
visit
- Overrides:
visitin classorg.objectweb.asm.AnnotationVisitor
-
visitEnum
- Overrides:
visitEnumin classorg.objectweb.asm.AnnotationVisitor
-
visitAnnotation
- Overrides:
visitAnnotationin classorg.objectweb.asm.AnnotationVisitor
-
visitArray
- Overrides:
visitArrayin classorg.objectweb.asm.AnnotationVisitor
-
createAnnotationRemapper
@Deprecated protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor) Deprecated.usecreateAnnotationRemapper(String, AnnotationVisitor)instead.Constructs a new remapper for annotations. The default implementation of this method returns a newAnnotationRemapper.- Parameters:
annotationVisitor- the AnnotationVisitor the remapper must delegate to.- Returns:
- the newly created remapper.
-
createAnnotationRemapper
protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper(String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations. The default implementation of this method returns a newAnnotationRemapper.- Parameters:
descriptor- the descriptor of the visited annotation.annotationVisitor- the AnnotationVisitor the remapper must delegate to.- Returns:
- the newly created remapper.
-
AnnotationRemapper(int, String, AnnotationVisitor, Remapper)instead.