Package org.spongepowered.asm.service
Interface IMixinAuditTrail
public interface IMixinAuditTrail
Audit trail is responsible for logging activities during mixin application to
target classes for use as debugging information later on. An audit trail
service can either log audit entries internally for retrieval on crash, or
can delegate to an underlying subsystem which handles this behaviour.
This service component is entirely optional and services can elect to return null if the platform does not support this functionality.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when a class has a mixin applied to it by mixin.voidonGenerate(String className, String generatorName) Called when a class is generated by mixin.voidonPostProcess(String className) Called when a class is post-processed by mixin.
-
Method Details
-
onApply
Called when a class has a mixin applied to it by mixin.- Parameters:
className- Target class namemixinName- Mixin name
-
onPostProcess
Called when a class is post-processed by mixin. This is the case for synthetic inner classes (eg. switch table) and for accessor interfaces.- Parameters:
className- Class being post-processed
-
onGenerate
Called when a class is generated by mixin. This is the case for fully synthetic classes such as Args and non-synthetic inner classes in mixins- Parameters:
className- Class being generatedgeneratorName- Name of the generator
-