Package org.objectweb.asm.commons
Class AnnotationRemapper
- java.lang.Object
-
- org.objectweb.asm.AnnotationVisitor
-
- org.objectweb.asm.commons.AnnotationRemapper
-
public class AnnotationRemapper extends AnnotationVisitor
AnAnnotationVisitorthat remaps types with aRemapper.- Author:
- Eugene Kuleshov
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdescriptorThe descriptor of the visited annotation.protected RemapperremapperThe remapper used to remap the types in the visited annotation.-
Fields inherited from class org.objectweb.asm.AnnotationVisitor
api, av
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotationRemapper(int api, String descriptor, AnnotationVisitor annotationVisitor, Remapper remapper)Constructs a newAnnotationRemapper.protectedAnnotationRemapper(int api, AnnotationVisitor annotationVisitor, Remapper remapper)Deprecated.AnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor, Remapper remapper)Constructs a newAnnotationRemapper.AnnotationRemapper(AnnotationVisitor annotationVisitor, Remapper remapper)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected AnnotationVisitorcreateAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor)Constructs a new remapper for annotations.protected AnnotationVisitorcreateAnnotationRemapper(AnnotationVisitor annotationVisitor)Deprecated.usecreateAnnotationRemapper(String, AnnotationVisitor)instead.voidvisit(String name, Object value)AnnotationVisitorvisitAnnotation(String name, String descriptor)AnnotationVisitorvisitArray(String name)voidvisitEnum(String name, String descriptor, String value)-
Methods inherited from class org.objectweb.asm.AnnotationVisitor
visitEnd
-
-
-
-
Constructor Detail
-
AnnotationRemapper
@Deprecated public AnnotationRemapper(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, 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, 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, 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 Detail
-
visit
public void visit(String name, Object value)
- Overrides:
visitin classAnnotationVisitor
-
visitEnum
public void visitEnum(String name, String descriptor, String value)
- Overrides:
visitEnumin classAnnotationVisitor
-
visitAnnotation
public AnnotationVisitor visitAnnotation(String name, String descriptor)
- Overrides:
visitAnnotationin classAnnotationVisitor
-
visitArray
public AnnotationVisitor visitArray(String name)
- Overrides:
visitArrayin classAnnotationVisitor
-
createAnnotationRemapper
@Deprecated protected AnnotationVisitor createAnnotationRemapper(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 AnnotationVisitor createAnnotationRemapper(String descriptor, 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.
-
-