Class InjectorTarget
java.lang.Object
org.spongepowered.asm.mixin.injection.code.InjectorTarget
Couples
method slices to a Target for injection
purposes.-
Constructor Summary
ConstructorsConstructorDescriptionInjectorTarget(ISliceContext context, Target target, ITargetSelector selector) ctor -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose all cached instruction listsGet the name of the mixin which merged this method, returns null for non- mixin methodsintGet the priority of the mixin which merged this method, or default priority for non-mixin methodsorg.objectweb.asm.tree.MethodNodeGet the target methodGet the selector which selected this targetorg.objectweb.asm.tree.InsnListGet the slice instructions for the specified slice idorg.objectweb.asm.tree.InsnListgetSlice(InjectionPoint injectionPoint) Get the slice instructions for the specified injection pointGet the target referencebooleanisMerged()Get whether this target method was merged by another mixintoString()
-
Constructor Details
-
InjectorTarget
ctor- Parameters:
context- ownertarget- target
-
-
Method Details
-
toString
-
getTarget
Get the target reference -
getMethod
public org.objectweb.asm.tree.MethodNode getMethod()Get the target method -
getSelector
Get the selector which selected this target -
isMerged
public boolean isMerged()Get whether this target method was merged by another mixin -
getMergedBy
Get the name of the mixin which merged this method, returns null for non- mixin methods -
getMergedPriority
public int getMergedPriority()Get the priority of the mixin which merged this method, or default priority for non-mixin methods -
getSlice
Get the slice instructions for the specified slice id- Parameters:
id- slice id- Returns:
- insn slice
-
getSlice
Get the slice instructions for the specified injection point- Parameters:
injectionPoint- injection point to fetch slice for- Returns:
- slice
-
dispose
public void dispose()Dispose all cached instruction lists
-