Class FieldRemapper


  • public class FieldRemapper
    extends org.objectweb.asm.FieldVisitor
    A FieldVisitor 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.FieldVisitor

        api, fv
    • Method Summary

      Modifier and Type Method Description
      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.FieldVisitor

        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

      • 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 deleted 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 Opcodes.ASM4, Opcodes.ASM5 or Opcodes.ASM6.
        fieldVisitor - the field visitor this remapper must deleted to.
        remapper - the remapper to use to remap the types in the visited field.
    • Method Detail

      • visitAnnotation

        public org.objectweb.asm.AnnotationVisitor visitAnnotation​(java.lang.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,
                                                                       java.lang.String descriptor,
                                                                       boolean visible)
        Overrides:
        visitTypeAnnotation in class org.objectweb.asm.FieldVisitor