public class SpecificOffset extends java.lang.Object implements InjectStrategy
InjectStrategy.InjectLocation| Constructor and Description |
|---|
SpecificOffset(int targetOffset,
boolean shouldInjectBefore) |
| Modifier and Type | Method and Description |
|---|---|
InjectStrategy.InjectLocation[] |
getAllSuitableInjectionLocation(ProgramClass targetClass,
ProgramMethod targetMethod)
Determine all locations (i.e., offsets) suitable for injecting a method invocation.
|
InjectStrategy.InjectLocation |
getSingleInjectionLocation(ProgramClass targetClass,
ProgramMethod targetMethod)
Determine one location (i.e.
|
public SpecificOffset(int targetOffset,
boolean shouldInjectBefore)
public InjectStrategy.InjectLocation getSingleInjectionLocation(ProgramClass targetClass, ProgramMethod targetMethod)
InjectStrategygetSingleInjectionLocation 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)
InjectStrategygetAllSuitableInjectionLocation 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.