public class MethodRemapper
extends org.objectweb.asm.MethodVisitor
MethodVisitor that remaps types with a Remapper.| Modifier and Type | Field | Description |
|---|---|---|
protected Remapper |
remapper |
The remapper used to remap the types in the visited field.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
MethodRemapper(int api,
org.objectweb.asm.MethodVisitor methodVisitor,
Remapper remapper) |
Constructs a new
MethodRemapper. |
|
MethodRemapper(org.objectweb.asm.MethodVisitor methodVisitor,
Remapper remapper) |
Constructs a new
MethodRemapper. |
| 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) |
Deprecated.
use
createAnnotationRemapper(String, AnnotationVisitor) instead. |
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(java.lang.String descriptor,
boolean visible) |
|
org.objectweb.asm.AnnotationVisitor |
visitAnnotationDefault() |
|
void |
visitFieldInsn(int opcode,
java.lang.String owner,
java.lang.String name,
java.lang.String descriptor) |
|
void |
visitFrame(int type,
int numLocal,
java.lang.Object[] local,
int numStack,
java.lang.Object[] stack) |
|
org.objectweb.asm.AnnotationVisitor |
visitInsnAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor,
boolean visible) |
|
void |
visitInvokeDynamicInsn(java.lang.String name,
java.lang.String descriptor,
org.objectweb.asm.Handle bootstrapMethodHandle,
java.lang.Object... bootstrapMethodArguments) |
|
void |
visitLdcInsn(java.lang.Object value) |
|
void |
visitLocalVariable(java.lang.String name,
java.lang.String descriptor,
java.lang.String signature,
org.objectweb.asm.Label start,
org.objectweb.asm.Label end,
int index) |
|
org.objectweb.asm.AnnotationVisitor |
visitLocalVariableAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
org.objectweb.asm.Label[] start,
org.objectweb.asm.Label[] end,
int[] index,
java.lang.String descriptor,
boolean visible) |
|
void |
visitMethodInsn(int opcodeAndSource,
java.lang.String owner,
java.lang.String name,
java.lang.String descriptor,
boolean isInterface) |
|
void |
visitMultiANewArrayInsn(java.lang.String descriptor,
int numDimensions) |
|
org.objectweb.asm.AnnotationVisitor |
visitParameterAnnotation(int parameter,
java.lang.String descriptor,
boolean visible) |
|
org.objectweb.asm.AnnotationVisitor |
visitTryCatchAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor,
boolean visible) |
|
void |
visitTryCatchBlock(org.objectweb.asm.Label start,
org.objectweb.asm.Label end,
org.objectweb.asm.Label handler,
java.lang.String type) |
|
org.objectweb.asm.AnnotationVisitor |
visitTypeAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor,
boolean visible) |
|
void |
visitTypeInsn(int opcode,
java.lang.String type) |
getDelegate, visitAnnotableParameterCount, visitAttribute, visitCode, visitEnd, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLineNumber, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitParameter, visitTableSwitchInsn, visitVarInsnprotected final Remapper remapper
public MethodRemapper(org.objectweb.asm.MethodVisitor methodVisitor,
Remapper remapper)
MethodRemapper. Subclasses must not use this constructor.
Instead, they must use the MethodRemapper(int,MethodVisitor,Remapper) version.methodVisitor - the method visitor this remapper must delegate to.remapper - the remapper to use to remap the types in the visited method.protected MethodRemapper(int api,
org.objectweb.asm.MethodVisitor methodVisitor,
Remapper remapper)
MethodRemapper.api - the ASM API version supported by this remapper. Must be one of the
ASMx values in Opcodes.methodVisitor - the method visitor this remapper must delegate to.remapper - the remapper to use to remap the types in the visited method.public org.objectweb.asm.AnnotationVisitor visitAnnotationDefault()
visitAnnotationDefault in class org.objectweb.asm.MethodVisitorpublic org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String descriptor,
boolean visible)
visitAnnotation in class org.objectweb.asm.MethodVisitorpublic org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor,
boolean visible)
visitTypeAnnotation in class org.objectweb.asm.MethodVisitorpublic org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int parameter,
java.lang.String descriptor,
boolean visible)
visitParameterAnnotation in class org.objectweb.asm.MethodVisitorpublic void visitFrame(int type,
int numLocal,
java.lang.Object[] local,
int numStack,
java.lang.Object[] stack)
visitFrame in class org.objectweb.asm.MethodVisitorpublic void visitFieldInsn(int opcode,
java.lang.String owner,
java.lang.String name,
java.lang.String descriptor)
visitFieldInsn in class org.objectweb.asm.MethodVisitorpublic void visitMethodInsn(int opcodeAndSource,
java.lang.String owner,
java.lang.String name,
java.lang.String descriptor,
boolean isInterface)
visitMethodInsn in class org.objectweb.asm.MethodVisitorpublic void visitInvokeDynamicInsn(java.lang.String name,
java.lang.String descriptor,
org.objectweb.asm.Handle bootstrapMethodHandle,
java.lang.Object... bootstrapMethodArguments)
visitInvokeDynamicInsn in class org.objectweb.asm.MethodVisitorpublic void visitTypeInsn(int opcode,
java.lang.String type)
visitTypeInsn in class org.objectweb.asm.MethodVisitorpublic void visitLdcInsn(java.lang.Object value)
visitLdcInsn in class org.objectweb.asm.MethodVisitorpublic void visitMultiANewArrayInsn(java.lang.String descriptor,
int numDimensions)
visitMultiANewArrayInsn in class org.objectweb.asm.MethodVisitorpublic org.objectweb.asm.AnnotationVisitor visitInsnAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor,
boolean visible)
visitInsnAnnotation in class org.objectweb.asm.MethodVisitorpublic void visitTryCatchBlock(org.objectweb.asm.Label start,
org.objectweb.asm.Label end,
org.objectweb.asm.Label handler,
java.lang.String type)
visitTryCatchBlock in class org.objectweb.asm.MethodVisitorpublic org.objectweb.asm.AnnotationVisitor visitTryCatchAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor,
boolean visible)
visitTryCatchAnnotation in class org.objectweb.asm.MethodVisitorpublic void visitLocalVariable(java.lang.String name,
java.lang.String descriptor,
java.lang.String signature,
org.objectweb.asm.Label start,
org.objectweb.asm.Label end,
int index)
visitLocalVariable in class org.objectweb.asm.MethodVisitorpublic org.objectweb.asm.AnnotationVisitor visitLocalVariableAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
org.objectweb.asm.Label[] start,
org.objectweb.asm.Label[] end,
int[] index,
java.lang.String descriptor,
boolean visible)
visitLocalVariableAnnotation in class org.objectweb.asm.MethodVisitor@Deprecated protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor)
createAnnotationRemapper(String, AnnotationVisitor) instead.AnnotationRemapper.annotationVisitor - the AnnotationVisitor the remapper must delegate to.protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper(java.lang.String descriptor,
org.objectweb.asm.AnnotationVisitor annotationVisitor)
AnnotationRemapper.descriptor - the descriptor of the visited annotation.annotationVisitor - the AnnotationVisitor the remapper must delegate to.Copyright © 2023. All rights reserved.