public abstract class AMapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected MapRemapper |
remapper |
| Constructor and Description |
|---|
AMapper(MapperConfig config) |
| Modifier and Type | Method and Description |
|---|---|
MapRemapper |
getRemapper()
Get the remapper used by this mapper.
|
protected abstract void |
init() |
void |
load()
Load all mappings from the overridden
init() method. |
org.objectweb.asm.tree.ClassNode |
mapClass(ClassTree classTree,
IClassProvider classProvider,
org.objectweb.asm.tree.ClassNode target,
org.objectweb.asm.tree.ClassNode transformer)
Remap the given transformer for the given target class.
|
java.lang.String |
mapClassName(java.lang.String className)
Remap the given class name separated by dots.
|
protected java.util.List<java.lang.String> |
readLines(java.io.File f) |
protected final MapRemapper remapper
public AMapper(MapperConfig config)
public final void load()
init() method.java.lang.RuntimeException - If the init() method throws an exceptionpublic final java.lang.String mapClassName(java.lang.String className)
className - The class namepublic final org.objectweb.asm.tree.ClassNode mapClass(ClassTree classTree, IClassProvider classProvider, org.objectweb.asm.tree.ClassNode target, org.objectweb.asm.tree.ClassNode transformer)
classTree - The class treeclassProvider - The class providertarget - The target class nodetransformer - The transformer class nodepublic MapRemapper getRemapper()
protected abstract void init()
throws java.lang.Throwable
java.lang.Throwableprotected java.util.List<java.lang.String> readLines(java.io.File f)
throws java.io.FileNotFoundException
java.io.FileNotFoundException