Class FieldRemapper

java.lang.Object
org.objectweb.asm.FieldVisitor
org.objectweb.asm.commons.FieldRemapper

public class FieldRemapper extends org.objectweb.asm.FieldVisitor
A FieldVisitor that remaps types with a Remapper.
  • Field Details

    • remapper

      protected final Remapper remapper
      The remapper used to remap the types in the visited field.
  • Constructor Details

    • FieldRemapper

      public FieldRemapper(org.objectweb.asm.FieldVisitor fieldVisitor, Remapper remapper)
      Constructs a new FieldRemapper. Subclasses must not use this constructor. Instead, they must use the FieldRemapper(int,FieldVisitor,Remapper) version.
      Parameters:
      fieldVisitor - the field visitor this remapper must delegate to.
      remapper - the remapper to use to remap the types in the visited field.
    • FieldRemapper

      protected FieldRemapper(int api, org.objectweb.asm.FieldVisitor fieldVisitor, Remapper remapper)
      Constructs a new FieldRemapper.
      Parameters:
      api - the ASM API version supported by this remapper. Must be one of the ASMx values in Opcodes.
      fieldVisitor - the field visitor this remapper must delegate to.
      remapper - the remapper to use to remap the types in the visited field.
  • Method Details

    • visitAnnotation

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

      public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible)
      Overrides:
      visitTypeAnnotation in class org.objectweb.asm.FieldVisitor
    • 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(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 of the visited annotation.
      annotationVisitor - the AnnotationVisitor the remapper must delegate to.
      Returns:
      the newly created remapper.