public class MixinTransformer extends TreeTransformer
| Modifier and Type | Method and Description |
|---|---|
void |
audit(MixinEnvironment environment)
Force-load all classes targetted by mixins but not yet applied
|
java.lang.String |
getName()
Get the identifier for this transformer, usually the class name but for
wrapped transformers this is the class name of the wrapped transformer
|
boolean |
isDelegationExcluded()
Get whether this transformer is excluded from delegation.
|
java.util.List<java.lang.String> |
reload(java.lang.String mixinClass,
byte[] bytes)
Update a mixin class with new bytecode.
|
byte[] |
transformClassBytes(java.lang.String name,
java.lang.String transformedName,
byte[] basicClass)
Transform a class in byte array form.
|
readClass, readClass, writeClasspublic void audit(MixinEnvironment environment)
environment - current environmentpublic java.lang.String getName()
ILegacyClassTransformerpublic boolean isDelegationExcluded()
ILegacyClassTransformerpublic byte[] transformClassBytes(java.lang.String name,
java.lang.String transformedName,
byte[] basicClass)
ILegacyClassTransformername - Class original nametransformedName - Class name after being processed by the class name
transformerbasicClass - class byte arraypublic java.util.List<java.lang.String> reload(java.lang.String mixinClass,
byte[] bytes)
mixinClass - Name of the mixinbytes - New bytecode