public class InjectorTarget
extends java.lang.Object
method slices to a Target for injection
purposes.| Constructor and Description |
|---|
InjectorTarget(ISliceContext context,
Target target,
TargetSelectors.SelectedMethod selectedMethod)
ctor
|
| Modifier and Type | Method and Description |
|---|---|
InjectionNodes.InjectionNode |
addInjectionNode(org.objectweb.asm.tree.AbstractInsnNode node)
Add an injection node to this target if it does not already exist,
returns the existing node if it exists
|
void |
dispose()
Dispose all cached instruction lists
|
java.lang.String |
getDesc()
Get the target method descriptor
|
InjectionNodes.InjectionNode |
getInjectionNode(org.objectweb.asm.tree.AbstractInsnNode node)
Get an injection node from this collection if it already exists, returns
null if the node is not tracked
|
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
|
java.lang.String |
getName()
Get the target method name
|
TargetSelectors.SelectedMethod |
getSelectedMethod()
Get the selector which selected this target
|
java.lang.String |
getSignature()
Get the target method signature
|
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, TargetSelectors.SelectedMethod selectedMethod)
context - ownertarget - targetpublic java.lang.String toString()
toString in class java.lang.Objectpublic InjectionNodes.InjectionNode addInjectionNode(org.objectweb.asm.tree.AbstractInsnNode node)
node - Instruction node to addpublic InjectionNodes.InjectionNode getInjectionNode(org.objectweb.asm.tree.AbstractInsnNode node)
node - instruction nodepublic java.lang.String getName()
public java.lang.String getDesc()
public java.lang.String getSignature()
public Target getTarget()
public org.objectweb.asm.tree.MethodNode getMethod()
public TargetSelectors.SelectedMethod getSelectedMethod()
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()