public class Remapper
extends java.lang.Object
| Constructor and Description |
|---|
Remapper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
merge(org.objectweb.asm.tree.ClassNode original,
org.objectweb.asm.tree.ClassNode toMerge)
Merge one
ClassNode into another overwriting all membersUse if you can't return a new ClassNode but still want to remap it |
static org.objectweb.asm.tree.ClassNode |
remap(org.objectweb.asm.tree.ClassNode node,
MapRemapper remapper)
Remap a
ClassNode using a ClassRemapper |
static org.objectweb.asm.tree.ClassNode |
remap(java.lang.String sourceName,
java.lang.String targetName,
org.objectweb.asm.tree.ClassNode node)
Remap a
ClassNode using a ClassRemapper |
static void |
remapAndAdd(org.objectweb.asm.tree.ClassNode source,
org.objectweb.asm.tree.ClassNode target,
org.objectweb.asm.tree.FieldNode fieldNode)
Remap a
FieldNode using a FieldRemapperThis is a wrapper for remapAndAdd(String, String, ClassNode, FieldNode) using the target ClassNode as the new holder |
static void |
remapAndAdd(org.objectweb.asm.tree.ClassNode source,
org.objectweb.asm.tree.ClassNode target,
org.objectweb.asm.tree.MethodNode methodNode)
Remap a
MethodNode using a MethodRemapperThis is a wrapper for remapAndAdd(String, String, ClassNode, MethodNode) using the target ClassNode as the new holder |
static void |
remapAndAdd(java.lang.String sourceName,
java.lang.String targetName,
org.objectweb.asm.tree.ClassNode holder,
org.objectweb.asm.tree.FieldNode fieldNode)
Remap a
FieldNode using a FieldRemapper |
static void |
remapAndAdd(java.lang.String sourceName,
java.lang.String targetName,
org.objectweb.asm.tree.ClassNode holder,
org.objectweb.asm.tree.MethodNode methodNode)
Remap a
MethodNode using a MethodRemapper |
public static void remapAndAdd(org.objectweb.asm.tree.ClassNode source,
org.objectweb.asm.tree.ClassNode target,
org.objectweb.asm.tree.MethodNode methodNode)
MethodNode using a MethodRemapperremapAndAdd(String, String, ClassNode, MethodNode) using the target ClassNode as the new holdersource - The owner of the MethodNodetarget - The new owner of the remapped MethodNodemethodNode - The MethodNode to remappublic static void remapAndAdd(org.objectweb.asm.tree.ClassNode source,
org.objectweb.asm.tree.ClassNode target,
org.objectweb.asm.tree.FieldNode fieldNode)
FieldNode using a FieldRemapperremapAndAdd(String, String, ClassNode, FieldNode) using the target ClassNode as the new holdersource - The owner of the MethodNodetarget - The new owner of the remapped MethodNodefieldNode - The MethodNode to remappublic static void remapAndAdd(java.lang.String sourceName,
java.lang.String targetName,
org.objectweb.asm.tree.ClassNode holder,
org.objectweb.asm.tree.MethodNode methodNode)
MethodNode using a MethodRemappersourceName - The original name of the classtargetName - The new name of the classholder - The ClassNode to which the new node gets addedmethodNode - The MethodNode to remappublic static void remapAndAdd(java.lang.String sourceName,
java.lang.String targetName,
org.objectweb.asm.tree.ClassNode holder,
org.objectweb.asm.tree.FieldNode fieldNode)
FieldNode using a FieldRemappersourceName - The original name of the classtargetName - The new name of the classholder - The ClassNode to which the new node gets addedfieldNode - The FieldNode to remappublic static org.objectweb.asm.tree.ClassNode remap(java.lang.String sourceName,
java.lang.String targetName,
org.objectweb.asm.tree.ClassNode node)
ClassNode using a ClassRemappersourceName - The original name of the classtargetName - The new name of the classnode - The ClassNode to remapClassNodepublic static org.objectweb.asm.tree.ClassNode remap(org.objectweb.asm.tree.ClassNode node,
MapRemapper remapper)
ClassNode using a ClassRemappernode - The ClassNode to remapremapper - The MapRemapper to useClassNodepublic static void merge(org.objectweb.asm.tree.ClassNode original,
org.objectweb.asm.tree.ClassNode toMerge)
ClassNode into another overwriting all membersClassNode but still want to remap itoriginal - The original ClassNodetoMerge - The ClassNode to merge into the original