Class ExtensionClassExporter
- java.lang.Object
-
- org.spongepowered.asm.mixin.transformer.ext.extensions.ExtensionClassExporter
-
- All Implemented Interfaces:
IExtension
public class ExtensionClassExporter extends java.lang.Object implements IExtension
Debug exporter
-
-
Constructor Summary
Constructors Constructor Description ExtensionClassExporter(MixinEnvironment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckActive(MixinEnvironment environment)Check whether this extension is active for the specified environmentjava.io.FiledumpClass(java.lang.String fileName, org.objectweb.asm.tree.ClassNode classNode)Write class bytecode to disk for debug purposesvoidexport(MixinEnvironment env, java.lang.String name, boolean force, org.objectweb.asm.tree.ClassNode classNode)Called when a class needs to be exportedbooleanisDecompilerActive()voidpostApply(ITargetClassContext context)Called after the mixins are appliedvoidpreApply(ITargetClassContext context)Called before the mixins are applied
-
-
-
Constructor Detail
-
ExtensionClassExporter
public ExtensionClassExporter(MixinEnvironment env)
-
-
Method Detail
-
isDecompilerActive
public boolean isDecompilerActive()
-
checkActive
public boolean checkActive(MixinEnvironment environment)
Description copied from interface:IExtensionCheck whether this extension is active for the specified environment- Specified by:
checkActivein interfaceIExtension- Parameters:
environment- current environment- Returns:
- true if the module should be active in the specified environment
-
preApply
public void preApply(ITargetClassContext context)
Description copied from interface:IExtensionCalled before the mixins are applied- Specified by:
preApplyin interfaceIExtension- Parameters:
context- Target class context
-
postApply
public void postApply(ITargetClassContext context)
Description copied from interface:IExtensionCalled after the mixins are applied- Specified by:
postApplyin interfaceIExtension- Parameters:
context- Target class context
-
export
public void export(MixinEnvironment env, java.lang.String name, boolean force, org.objectweb.asm.tree.ClassNode classNode)
Description copied from interface:IExtensionCalled when a class needs to be exported- Specified by:
exportin interfaceIExtension- Parameters:
env- Environmentname- Class nameforce- True to export even if the current environment settings would normally disable itclassNode- Class to export
-
dumpClass
public java.io.File dumpClass(java.lang.String fileName, org.objectweb.asm.tree.ClassNode classNode)Write class bytecode to disk for debug purposes- Parameters:
fileName- filename to write (.class will be automatically appended)classNode- class to dump- Returns:
- written file
-
-