Class AnnotationRemapper


  • public class AnnotationRemapper
    extends org.objectweb.asm.AnnotationVisitor
    An AnnotationVisitor that remaps types with a Remapper.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Remapper remapper
      The remapper used to remap the types in the visited annotation.
      • Fields inherited from class org.objectweb.asm.AnnotationVisitor

        api, av
    • Method Summary

      Modifier and Type Method Description
      void visit​(java.lang.String name, java.lang.Object value)  
      org.objectweb.asm.AnnotationVisitor visitAnnotation​(java.lang.String name, java.lang.String descriptor)  
      org.objectweb.asm.AnnotationVisitor visitArray​(java.lang.String name)  
      void visitEnum​(java.lang.String name, java.lang.String descriptor, java.lang.String value)  
      • Methods inherited from class org.objectweb.asm.AnnotationVisitor

        visitEnd
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 new AnnotationRemapper. Subclasses must not use this constructor. Instead, they must use the AnnotationRemapper(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 new AnnotationRemapper.
        Parameters:
        api - the ASM API version supported by this remapper. Must be one of Opcodes.ASM4, Opcodes.ASM5 or Opcodes.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:
        visit in class org.objectweb.asm.AnnotationVisitor
      • visitEnum

        public void visitEnum​(java.lang.String name,
                              java.lang.String descriptor,
                              java.lang.String value)
        Overrides:
        visitEnum in class org.objectweb.asm.AnnotationVisitor
      • visitAnnotation

        public org.objectweb.asm.AnnotationVisitor visitAnnotation​(java.lang.String name,
                                                                   java.lang.String descriptor)
        Overrides:
        visitAnnotation in class org.objectweb.asm.AnnotationVisitor
      • visitArray

        public org.objectweb.asm.AnnotationVisitor visitArray​(java.lang.String name)
        Overrides:
        visitArray in class org.objectweb.asm.AnnotationVisitor