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.AnnotationVisitorAnAnnotationVisitorthat remaps types with aRemapper.- Author:
- Eugene Kuleshov
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotationRemapper(int api, org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper)Constructs a newAnnotationRemapper.AnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper)Constructs a newAnnotationRemapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisit(java.lang.String name, java.lang.Object value)org.objectweb.asm.AnnotationVisitorvisitAnnotation(java.lang.String name, java.lang.String descriptor)org.objectweb.asm.AnnotationVisitorvisitArray(java.lang.String name)voidvisitEnum(java.lang.String name, java.lang.String descriptor, java.lang.String value)
-
-
-
Field Detail
-
remapper
protected final Remapper remapper
The remapper used to remap the types in the visited annotation.
-
-
Constructor Detail
-
AnnotationRemapper
public AnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper)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 deleted to.remapper- the remapper to use to remap the types in the visited annotation.
-
AnnotationRemapper
protected AnnotationRemapper(int api, org.objectweb.asm.AnnotationVisitor annotationVisitor, Remapper remapper)Constructs a newAnnotationRemapper.- Parameters:
api- the ASM API version supported by this remapper. Must be one ofOpcodes.ASM4,Opcodes.ASM5orOpcodes.ASM6.annotationVisitor- the annotation visitor this remapper must deleted to.remapper- the remapper to use to remap the types in the visited annotation.
-
-
Method Detail
-
visit
public void visit(java.lang.String name, java.lang.Object value)- Overrides:
visitin classorg.objectweb.asm.AnnotationVisitor
-
visitEnum
public void visitEnum(java.lang.String name, java.lang.String descriptor, java.lang.String value)- Overrides:
visitEnumin classorg.objectweb.asm.AnnotationVisitor
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String name, java.lang.String descriptor)- Overrides:
visitAnnotationin classorg.objectweb.asm.AnnotationVisitor
-
visitArray
public org.objectweb.asm.AnnotationVisitor visitArray(java.lang.String name)
- Overrides:
visitArrayin classorg.objectweb.asm.AnnotationVisitor
-
-