public class AccessTransformer
extends java.lang.Object
implements net.minecraft.launchwrapper.IClassTransformer
Modifier and Type | Class and Description |
---|---|
(package private) class |
AccessTransformer.Modifier |
Modifier and Type | Field and Description |
---|---|
private static boolean |
DEBUG |
private com.google.common.collect.Multimap<java.lang.String,AccessTransformer.Modifier> |
modifiers |
Modifier | Constructor and Description |
---|---|
|
AccessTransformer() |
(package private) |
AccessTransformer(java.lang.Class<? extends AccessTransformer> dummyClazz) |
protected |
AccessTransformer(java.lang.String rulesFile) |
Modifier and Type | Method and Description |
---|---|
private int |
getFixedAccess(int access,
AccessTransformer.Modifier target) |
(package private) com.google.common.collect.Multimap<java.lang.String,AccessTransformer.Modifier> |
getModifiers() |
(package private) boolean |
isEmpty() |
static void |
main(java.lang.String[] args) |
protected void |
processATFile(com.google.common.io.CharSource rulesResource) |
private static void |
processJar(java.io.File inFile,
java.io.File outFile,
AccessTransformer[] transformers) |
(package private) void |
readMapFile(java.lang.String rulesFile) |
private void |
replaceInvokeSpecial(org.objectweb.asm.tree.ClassNode clazz,
java.util.List<org.objectweb.asm.tree.MethodNode> toReplace) |
private java.lang.String |
toBinary(int num) |
byte[] |
transform(java.lang.String name,
java.lang.String transformedName,
byte[] bytes) |
private static final boolean DEBUG
private com.google.common.collect.Multimap<java.lang.String,AccessTransformer.Modifier> modifiers
public AccessTransformer() throws java.io.IOException
java.io.IOException
protected AccessTransformer(java.lang.String rulesFile) throws java.io.IOException
java.io.IOException
AccessTransformer(java.lang.Class<? extends AccessTransformer> dummyClazz)
void readMapFile(java.lang.String rulesFile) throws java.io.IOException
java.io.IOException
protected void processATFile(com.google.common.io.CharSource rulesResource) throws java.io.IOException
java.io.IOException
public byte[] transform(java.lang.String name, java.lang.String transformedName, byte[] bytes)
transform
in interface net.minecraft.launchwrapper.IClassTransformer
private void replaceInvokeSpecial(org.objectweb.asm.tree.ClassNode clazz, java.util.List<org.objectweb.asm.tree.MethodNode> toReplace)
private java.lang.String toBinary(int num)
private int getFixedAccess(int access, AccessTransformer.Modifier target)
public static void main(java.lang.String[] args)
private static void processJar(java.io.File inFile, java.io.File outFile, AccessTransformer[] transformers) throws java.io.IOException
java.io.IOException
com.google.common.collect.Multimap<java.lang.String,AccessTransformer.Modifier> getModifiers()
boolean isEmpty()