Class RecordComponentRemapper


  • public class RecordComponentRemapper
    extends org.objectweb.asm.RecordComponentVisitor
    A RecordComponentVisitor 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 field.
      • Fields inherited from class org.objectweb.asm.RecordComponentVisitor

        api
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper​(java.lang.String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor)
      Constructs a new remapper for annotations.
      protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper​(org.objectweb.asm.AnnotationVisitor annotationVisitor)
      org.objectweb.asm.AnnotationVisitor visitAnnotation​(java.lang.String descriptor, boolean visible)  
      org.objectweb.asm.AnnotationVisitor visitTypeAnnotation​(int typeRef, org.objectweb.asm.TypePath typePath, java.lang.String descriptor, boolean visible)  
      • Methods inherited from class org.objectweb.asm.RecordComponentVisitor

        getDelegate, visitAttribute, 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 field.
    • Constructor Detail

      • RecordComponentRemapper

        public RecordComponentRemapper​(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor,
                                       Remapper remapper)
        Constructs a new RecordComponentRemapper. Subclasses must not use this constructor. Instead, they must use the RecordComponentRemapper(int,RecordComponentVisitor,Remapper) version.
        Parameters:
        recordComponentVisitor - the record component visitor this remapper must delegate to.
        remapper - the remapper to use to remap the types in the visited record component.
      • RecordComponentRemapper

        protected RecordComponentRemapper​(int api,
                                          org.objectweb.asm.RecordComponentVisitor recordComponentVisitor,
                                          Remapper remapper)
        Constructs a new RecordComponentRemapper.
        Parameters:
        api - the ASM API version supported by this remapper. Must be one of Opcodes.ASM8 or Opcodes.ASM9.
        recordComponentVisitor - the record component visitor this remapper must delegate to.
        remapper - the remapper to use to remap the types in the visited record component.
    • Method Detail

      • visitAnnotation

        public org.objectweb.asm.AnnotationVisitor visitAnnotation​(java.lang.String descriptor,
                                                                   boolean visible)
        Overrides:
        visitAnnotation in class org.objectweb.asm.RecordComponentVisitor
      • visitTypeAnnotation

        public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation​(int typeRef,
                                                                       org.objectweb.asm.TypePath typePath,
                                                                       java.lang.String descriptor,
                                                                       boolean visible)
        Overrides:
        visitTypeAnnotation in class org.objectweb.asm.RecordComponentVisitor
      • createAnnotationRemapper

        @Deprecated
        protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper​(org.objectweb.asm.AnnotationVisitor annotationVisitor)
        Constructs a new remapper for annotations. The default implementation of this method returns a new AnnotationRemapper.
        Parameters:
        annotationVisitor - the AnnotationVisitor the remapper must delegate to.
        Returns:
        the newly created remapper.
      • createAnnotationRemapper

        protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper​(java.lang.String descriptor,
                                                                               org.objectweb.asm.AnnotationVisitor annotationVisitor)
        Constructs a new remapper for annotations. The default implementation of this method returns a new AnnotationRemapper.
        Parameters:
        descriptor - the descriptor sof the visited annotation.
        annotationVisitor - the AnnotationVisitor the remapper must delegate to.
        Returns:
        the newly created remapper.