public class LastBlocks extends java.lang.Object implements InjectStrategy
InjectStrategy.InjectLocation| Constructor and Description |
|---|
LastBlocks() |
| Modifier and Type | Method and Description |
|---|---|
InjectStrategy.InjectLocation[] |
getAllSuitableInjectionLocation(ProgramClass targetClass,
ProgramMethod targetMethod)
Find offsets of return or throw instructions to inject a method invocation.
|
InjectStrategy.InjectLocation |
getSingleInjectionLocation(ProgramClass targetClass,
ProgramMethod targetMethod)
Find the first offset of return or throw instructions to inject a method invocation.
|
public InjectStrategy.InjectLocation getSingleInjectionLocation(ProgramClass targetClass, ProgramMethod targetMethod)
getSingleInjectionLocation in interface InjectStrategytargetClass - The class holding the method in which a method invocation will be injected.targetMethod - The target method to have a method invocation injected into.public InjectStrategy.InjectLocation[] getAllSuitableInjectionLocation(ProgramClass targetClass, ProgramMethod targetMethod)
getAllSuitableInjectionLocation in interface InjectStrategytargetClass - The class holding the method in which a method invocation will be injected.targetMethod - The target method to have a method invocation injected into.