public class MixinTargetContext extends java.lang.Object implements IMixinContext
| Modifier and Type | Field and Description |
|---|---|
protected ActivityStack |
activities
Activity tracker
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassName()
Get the mixin class name
|
org.objectweb.asm.tree.ClassNode |
getClassNode()
Get the mixin tree
|
java.lang.String |
getClassRef()
Get the internal class name
|
java.lang.String |
getDefaultInjectorGroup()
Get the defined injector group for injectors
|
int |
getDefaultRequiredInjections()
Get the defined value for the
Inject.require() parameter on
injectors defined in mixins in this configuration. |
MixinEnvironment |
getEnvironment()
Get the environment of the owning mixin config
|
Extensions |
getExtensions()
Get the mixin transformer extension manager
|
InjectorGroupInfo.Map |
getInjectorGroups()
Get the injector groups for this target
|
int |
getMaxShiftByValue()
Get the max shift "by" value for the parent config
|
int |
getMinRequiredClassVersion()
Get the minimum required class version for this mixin
|
IMixinInfo |
getMixin()
Get the mixin info
|
boolean |
getOption(MixinEnvironment.Option option)
Retrieve the value of the specified option from the environment
this mixin belongs to.
|
int |
getPriority()
Get the mixin priority
|
IReferenceMapper |
getReferenceMapper()
Get the reference mapper for this mixin
|
ClassSignature |
getSignature()
Get the signature for this mixin class
|
SourceMap.File |
getStratum()
Get the SourceMap stratum for this mixin
|
org.spongepowered.asm.mixin.transformer.TargetClassContext |
getTarget()
Get the target class context
|
ClassInfo |
getTargetClassInfo()
Get the target classinfo
|
org.objectweb.asm.tree.ClassNode |
getTargetClassNode()
Get the target class
|
java.lang.String |
getTargetClassRef()
Get the target class reference
|
Target |
getTargetMethod(org.objectweb.asm.tree.MethodNode method)
Get a target method handle from the target class
|
boolean |
requireOverwriteAnnotations()
Get whether overwrite annotations are required for methods in this mixin
|
protected void |
requireVersion(int version)
Mark this mixin as requiring the specified class version in the context
of the current target
|
java.lang.String |
toString() |
protected void |
upgradeMethodRef(org.objectweb.asm.tree.MethodNode containingMethod,
MemberRef methodRef,
ClassInfo.Method method) |
protected void |
upgradeMethods() |
protected final ActivityStack activities
public java.lang.String toString()
toString in class java.lang.Objectpublic MixinEnvironment getEnvironment()
public boolean getOption(MixinEnvironment.Option option)
IMixinContextgetOption in interface IMixinContextoption - option to checkpublic org.objectweb.asm.tree.ClassNode getClassNode()
public java.lang.String getClassName()
getClassName in interface IMixinContextpublic java.lang.String getClassRef()
getClassRef in interface IMixinContextpublic org.spongepowered.asm.mixin.transformer.TargetClassContext getTarget()
public java.lang.String getTargetClassRef()
getTargetClassRef in interface IMixinContextpublic org.objectweb.asm.tree.ClassNode getTargetClassNode()
public ClassInfo getTargetClassInfo()
public ClassSignature getSignature()
public SourceMap.File getStratum()
public int getMinRequiredClassVersion()
public int getDefaultRequiredInjections()
Inject.require() parameter on
injectors defined in mixins in this configuration.public java.lang.String getDefaultInjectorGroup()
public int getMaxShiftByValue()
public InjectorGroupInfo.Map getInjectorGroups()
public boolean requireOverwriteAnnotations()
Overwritepublic Target getTargetMethod(org.objectweb.asm.tree.MethodNode method)
getTargetMethod in interface IMixinContextmethod - method to get a target handle forprotected void requireVersion(int version)
version - version to requirepublic Extensions getExtensions()
IMixinContextgetExtensions in interface IMixinContextpublic IMixinInfo getMixin()
IMixinContextgetMixin in interface IMixinContextpublic int getPriority()
getPriority in interface IMixinContextpublic IReferenceMapper getReferenceMapper()
IMixinContextgetReferenceMapper in interface IMixinContextprotected void upgradeMethods()
protected void upgradeMethodRef(org.objectweb.asm.tree.MethodNode containingMethod,
MemberRef methodRef,
ClassInfo.Method method)