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 class node into another overwriting all members.
|
static org.objectweb.asm.tree.ClassNode |
remap(org.objectweb.asm.tree.ClassNode node,
MapRemapper remapper)
Remap a class node using a custom remapper.
|
static org.objectweb.asm.tree.ClassNode |
remap(java.lang.String sourceName,
java.lang.String targetName,
org.objectweb.asm.tree.ClassNode node)
Remap a class node from the given name to the new name.
|
static void |
remapAndAdd(org.objectweb.asm.tree.ClassNode source,
org.objectweb.asm.tree.ClassNode target,
org.objectweb.asm.tree.FieldNode fieldNode)
Remap a field node and add it to the target class.
|
static void |
remapAndAdd(org.objectweb.asm.tree.ClassNode source,
org.objectweb.asm.tree.ClassNode target,
org.objectweb.asm.tree.MethodNode methodNode)
Remap a method node and add it to the target class.
|
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 field node and add it to the target class.
|
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 method node and add it to the target class.
|
public static void remapAndAdd(org.objectweb.asm.tree.ClassNode source,
org.objectweb.asm.tree.ClassNode target,
org.objectweb.asm.tree.MethodNode methodNode)
source - The owner of the method nodetarget - The new owner of the remapped method nodemethodNode - The method node to remappublic static void remapAndAdd(org.objectweb.asm.tree.ClassNode source,
org.objectweb.asm.tree.ClassNode target,
org.objectweb.asm.tree.FieldNode fieldNode)
source - The owner of the field nodetarget - The new owner of the remapped field nodefieldNode - The field node 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)
sourceName - The original name of the classtargetName - The new name of the classholder - The class node to which the remapped method node gets addedmethodNode - The method node 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)
sourceName - The original name of the classtargetName - The new name of the classholder - The class node to which the remapped field node gets addedfieldNode - The field node to remappublic static org.objectweb.asm.tree.ClassNode remap(java.lang.String sourceName,
java.lang.String targetName,
org.objectweb.asm.tree.ClassNode node)
sourceName - The original name of the classtargetName - The new name of the classnode - The class node to remappublic static org.objectweb.asm.tree.ClassNode remap(org.objectweb.asm.tree.ClassNode node,
MapRemapper remapper)
node - The class node to remapremapper - The remapper to usepublic static void merge(org.objectweb.asm.tree.ClassNode original,
org.objectweb.asm.tree.ClassNode toMerge)
original - The original class nodetoMerge - The class node to merge into the original