Package org.objectweb.asm.commons
Class FieldRemapper
- java.lang.Object
-
- org.objectweb.asm.FieldVisitor
-
- org.objectweb.asm.commons.FieldRemapper
-
public class FieldRemapper extends org.objectweb.asm.FieldVisitorAFieldVisitorthat remaps types with aRemapper.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFieldRemapper(int api, org.objectweb.asm.FieldVisitor fieldVisitor, Remapper remapper)Constructs a newFieldRemapper.FieldRemapper(org.objectweb.asm.FieldVisitor fieldVisitor, Remapper remapper)Constructs a newFieldRemapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.objectweb.asm.AnnotationVisitorcreateAnnotationRemapper(java.lang.String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor)Constructs a new remapper for annotations.protected org.objectweb.asm.AnnotationVisitorcreateAnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor)Deprecated.usecreateAnnotationRemapper(String, AnnotationVisitor)instead.org.objectweb.asm.AnnotationVisitorvisitAnnotation(java.lang.String descriptor, boolean visible)org.objectweb.asm.AnnotationVisitorvisitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, java.lang.String descriptor, boolean visible)
-
-
-
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 newFieldRemapper. Subclasses must not use this constructor. Instead, they must use theFieldRemapper(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 newFieldRemapper.- Parameters:
api- the ASM API version supported by this remapper. Must be one of theASMx values inOpcodes.fieldVisitor- the field visitor this remapper must delegate 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:
visitAnnotationin classorg.objectweb.asm.FieldVisitor
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, java.lang.String descriptor, boolean visible)- Overrides:
visitTypeAnnotationin classorg.objectweb.asm.FieldVisitor
-
createAnnotationRemapper
@Deprecated protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor)
Deprecated.usecreateAnnotationRemapper(String, AnnotationVisitor)instead.Constructs a new remapper for annotations. The default implementation of this method returns a newAnnotationRemapper.- 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 newAnnotationRemapper.- Parameters:
descriptor- the descriptor of the visited annotation.annotationVisitor- the AnnotationVisitor the remapper must delegate to.- Returns:
- the newly created remapper.
-
-