Class ExtensionLVTCleaner
java.lang.Object
org.spongepowered.asm.mixin.transformer.ext.extensions.ExtensionLVTCleaner
- All Implemented Interfaces:
IExtension
Strips synthetic local variables from the LVT after exporting to avoid debuggers becoming confused by them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckActive(MixinEnvironment environment) Check whether this extension is active for the specified environmentvoidexport(MixinEnvironment env, String name, boolean force, org.objectweb.asm.tree.ClassNode classNode) Called when a class needs to be exportedvoidpostApply(ITargetClassContext context) Called after the mixins are appliedvoidpreApply(ITargetClassContext context) Called before the mixins are applied
-
Constructor Details
-
ExtensionLVTCleaner
public ExtensionLVTCleaner()
-
-
Method Details
-
checkActive
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
Description copied from interface:IExtensionCalled before the mixins are applied- Specified by:
preApplyin interfaceIExtension- Parameters:
context- Target class context
-
postApply
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, 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
-