public class InjectorTarget
extends java.lang.Object
method slices to a Target for injection
purposes.| Constructor and Description |
|---|
InjectorTarget(ISliceContext context,
Target target)
ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose all cached instruction lists
|
java.lang.String |
getMergedBy()
Get the name of the mixin which merged this method, returns null for non-
mixin methods
|
int |
getMergedPriority()
Get the priority of the mixin which merged this method, or default
priority for non-mixin methods
|
org.objectweb.asm.tree.MethodNode |
getMethod()
Get the target method
|
org.objectweb.asm.tree.InsnList |
getSlice(InjectionPoint injectionPoint)
Get the slice instructions for the specified injection point
|
org.objectweb.asm.tree.InsnList |
getSlice(java.lang.String id)
Get the slice instructions for the specified slice id
|
Target |
getTarget()
Get the target reference
|
boolean |
isMerged()
Get whether this target method was merged by another mixin
|
java.lang.String |
toString() |
public InjectorTarget(ISliceContext context, Target target)
context - ownertarget - targetpublic java.lang.String toString()
toString in class java.lang.Objectpublic Target getTarget()
public org.objectweb.asm.tree.MethodNode getMethod()
public boolean isMerged()
public java.lang.String getMergedBy()
public int getMergedPriority()
public org.objectweb.asm.tree.InsnList getSlice(java.lang.String id)
id - slice idpublic org.objectweb.asm.tree.InsnList getSlice(InjectionPoint injectionPoint)
injectionPoint - injection point to fetch slice forpublic void dispose()