Interface IMixinContext
- All Known Implementing Classes:
MixinTargetContext
public interface IMixinContext
Context for performing reference mapping
-
Method Summary
Modifier and Type Method Description java.lang.StringgetClassName()Get the mixin class namejava.lang.StringgetClassRef()Get the internal mixin class nameExtensionsgetExtensions()Get the mixin transformer extension managerIMixinInfogetMixin()Get the mixin infobooleangetOption(MixinEnvironment.Option option)Retrieve the value of the specified option from the environment this mixin belongs to.intgetPriority()Get the priority of the mixinIReferenceMappergetReferenceMapper()Get the reference mapper for this mixinjava.lang.StringgetTargetClassRef()Get the internal name of the target class for this contextTargetgetTargetMethod(org.objectweb.asm.tree.MethodNode method)Obtain aTargetmethod handle for a method in the target, this is used by consumers to manipulate the bytecode in a target method in a controlled manner.
-
Method Details
-
getMixin
IMixinInfo getMixin()Get the mixin info -
getExtensions
Extensions getExtensions()Get the mixin transformer extension manager -
getClassName
java.lang.String getClassName()Get the mixin class name- Returns:
- the mixin class name
-
getClassRef
java.lang.String getClassRef()Get the internal mixin class name- Returns:
- internal class name
-
getTargetClassRef
java.lang.String getTargetClassRef()Get the internal name of the target class for this context- Returns:
- internal target class name
-
getReferenceMapper
IReferenceMapper getReferenceMapper()Get the reference mapper for this mixin- Returns:
- ReferenceMapper instance (can be null)
-
getOption
Retrieve the value of the specified option from the environment this mixin belongs to.- Parameters:
option- option to check- Returns:
- option value
-
getPriority
int getPriority()Get the priority of the mixin -
getTargetMethod
Obtain aTargetmethod handle for a method in the target, this is used by consumers to manipulate the bytecode in a target method in a controlled manner.- Parameters:
method- method node to wrap- Returns:
- target method
-