public class AfterInvoke extends BeforeInvoke
This injection point searches for INVOKEVIRTUAL, INVOKESTATIC and
INVOKESPECIAL opcodes matching its arguments and returns a list of insns
after the matching instructions, with special handling for methods
invocations which return a value and immediately assign it to a local
variable. It accepts the following parameters from
At:
Target Selector
which identifies the target methodExample:
@At(value = "INVOKE_ASSIGN", target="func_1234_a(III)J")
Note that unlike other standard injection points, this class matches the
insn after the invocation, and after any local variable assignment. Use the
shift specifier to
adjust the matched opcode as necessary.
BeforeInvoke.SearchTypeInjectionPoint.AtCode, InjectionPoint.RestrictTargetLevel, InjectionPoint.SelectorallowPermissive, className, context, logger, ordinal, targetDEFAULT_ALLOWED_SHIFT_BY, MAX_ALLOWED_SHIFT_BY| Constructor and Description |
|---|
AfterInvoke(InjectionPointData data) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addInsn(org.objectweb.asm.tree.InsnList insns,
java.util.Collection<org.objectweb.asm.tree.AbstractInsnNode> nodes,
org.objectweb.asm.tree.AbstractInsnNode insn) |
find, find, inspectInsn, log, matchesInsn, matchesOrdinal, setLoggingpublic AfterInvoke(InjectionPointData data)
protected boolean addInsn(org.objectweb.asm.tree.InsnList insns,
java.util.Collection<org.objectweb.asm.tree.AbstractInsnNode> nodes,
org.objectweb.asm.tree.AbstractInsnNode insn)
addInsn in class BeforeInvoke