Package org.objectweb.asm.commons
Class MethodRemapper
java.lang.Object
org.objectweb.asm.MethodVisitor
org.objectweb.asm.commons.MethodRemapper
public class MethodRemapper
extends org.objectweb.asm.MethodVisitor
A
MethodVisitor that remaps types with a Remapper.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RemapperThe remapper used to remap the types in the visited field.Fields inherited from class org.objectweb.asm.MethodVisitor
api, mv -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMethodRemapper(int api, org.objectweb.asm.MethodVisitor methodVisitor, Remapper remapper) Constructs a newMethodRemapper.MethodRemapper(org.objectweb.asm.MethodVisitor methodVisitor, Remapper remapper) Constructs a newMethodRemapper. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.objectweb.asm.AnnotationVisitorcreateAnnotationRemapper(String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected org.objectweb.asm.AnnotationVisitorcreateAnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor) Deprecated.org.objectweb.asm.AnnotationVisitorvisitAnnotation(String descriptor, boolean visible) org.objectweb.asm.AnnotationVisitorvoidvisitFieldInsn(int opcode, String owner, String name, String descriptor) voidvisitFrame(int type, int numLocal, Object[] local, int numStack, Object[] stack) org.objectweb.asm.AnnotationVisitorvisitInsnAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) voidvisitInvokeDynamicInsn(String name, String descriptor, org.objectweb.asm.Handle bootstrapMethodHandle, Object... bootstrapMethodArguments) voidvisitLdcInsn(Object value) voidvisitLocalVariable(String name, String descriptor, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index) org.objectweb.asm.AnnotationVisitorvisitLocalVariableAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, org.objectweb.asm.Label[] start, org.objectweb.asm.Label[] end, int[] index, String descriptor, boolean visible) voidvisitMethodInsn(int opcodeAndSource, String owner, String name, String descriptor, boolean isInterface) voidvisitMultiANewArrayInsn(String descriptor, int numDimensions) org.objectweb.asm.AnnotationVisitorvisitParameterAnnotation(int parameter, String descriptor, boolean visible) org.objectweb.asm.AnnotationVisitorvisitTryCatchAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) voidvisitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type) org.objectweb.asm.AnnotationVisitorvisitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) voidvisitTypeInsn(int opcode, String type) Methods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAnnotableParameterCount, visitAttribute, visitCode, visitEnd, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLineNumber, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitParameter, visitTableSwitchInsn, visitVarInsn
-
Field Details
-
remapper
The remapper used to remap the types in the visited field.
-
-
Constructor Details
-
MethodRemapper
Constructs a newMethodRemapper. Subclasses must not use this constructor. Instead, they must use theMethodRemapper(int,MethodVisitor,Remapper)version.- Parameters:
methodVisitor- the method visitor this remapper must delegate to.remapper- the remapper to use to remap the types in the visited method.
-
MethodRemapper
Constructs a newMethodRemapper.- Parameters:
api- the ASM API version supported by this remapper. Must be one of theASMx values inOpcodes.methodVisitor- the method visitor this remapper must delegate to.remapper- the remapper to use to remap the types in the visited method.
-
-
Method Details
-
visitAnnotationDefault
public org.objectweb.asm.AnnotationVisitor visitAnnotationDefault()- Overrides:
visitAnnotationDefaultin classorg.objectweb.asm.MethodVisitor
-
visitAnnotation
- Overrides:
visitAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitTypeAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitParameterAnnotation
public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int parameter, String descriptor, boolean visible) - Overrides:
visitParameterAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitFrame
- Overrides:
visitFramein classorg.objectweb.asm.MethodVisitor
-
visitFieldInsn
- Overrides:
visitFieldInsnin classorg.objectweb.asm.MethodVisitor
-
visitMethodInsn
public void visitMethodInsn(int opcodeAndSource, String owner, String name, String descriptor, boolean isInterface) - Overrides:
visitMethodInsnin classorg.objectweb.asm.MethodVisitor
-
visitInvokeDynamicInsn
public void visitInvokeDynamicInsn(String name, String descriptor, org.objectweb.asm.Handle bootstrapMethodHandle, Object... bootstrapMethodArguments) - Overrides:
visitInvokeDynamicInsnin classorg.objectweb.asm.MethodVisitor
-
visitTypeInsn
- Overrides:
visitTypeInsnin classorg.objectweb.asm.MethodVisitor
-
visitLdcInsn
- Overrides:
visitLdcInsnin classorg.objectweb.asm.MethodVisitor
-
visitMultiANewArrayInsn
- Overrides:
visitMultiANewArrayInsnin classorg.objectweb.asm.MethodVisitor
-
visitInsnAnnotation
public org.objectweb.asm.AnnotationVisitor visitInsnAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitInsnAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitTryCatchBlock
public void visitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type) - Overrides:
visitTryCatchBlockin classorg.objectweb.asm.MethodVisitor
-
visitTryCatchAnnotation
public org.objectweb.asm.AnnotationVisitor visitTryCatchAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitTryCatchAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitLocalVariable
public void visitLocalVariable(String name, String descriptor, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index) - Overrides:
visitLocalVariablein classorg.objectweb.asm.MethodVisitor
-
visitLocalVariableAnnotation
public org.objectweb.asm.AnnotationVisitor visitLocalVariableAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, org.objectweb.asm.Label[] start, org.objectweb.asm.Label[] end, int[] index, String descriptor, boolean visible) - Overrides:
visitLocalVariableAnnotationin classorg.objectweb.asm.MethodVisitor
-
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(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.
-
createAnnotationRemapper(String, AnnotationVisitor)instead.