类 SpecificOffset
- java.lang.Object
-
- proguard.classfile.util.inject.location.SpecificOffset
-
- 所有已实现的接口:
InjectStrategy
public class SpecificOffset extends java.lang.Object implements InjectStrategy
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 proguard.classfile.util.inject.location.InjectStrategy
InjectStrategy.InjectLocation
-
-
构造器概要
构造器 构造器 说明 SpecificOffset(int targetOffset, boolean shouldInjectBefore)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 InjectStrategy.InjectLocation[]getAllSuitableInjectionLocation(ProgramClass targetClass, ProgramMethod targetMethod)Determine all locations (i.e., offsets) suitable for injecting a method invocation.InjectStrategy.InjectLocationgetSingleInjectionLocation(ProgramClass targetClass, ProgramMethod targetMethod)Determine one location (i.e. offset) suitable for injecting a method invocation.
-
-
-
方法详细资料
-
getSingleInjectionLocation
public InjectStrategy.InjectLocation getSingleInjectionLocation(ProgramClass targetClass, ProgramMethod targetMethod)
从接口复制的说明:InjectStrategyDetermine one location (i.e. offset) suitable for injecting a method invocation.- 指定者:
getSingleInjectionLocation在接口中InjectStrategy- 参数:
targetClass- The class holding the method in which a method invocation will be injected.targetMethod- The target method to have a method invocation injected into.- 返回:
- An InjectLocation instance indicating an offset suitable for injection and whether the injection shall happen before or after the offset.
-
getAllSuitableInjectionLocation
public InjectStrategy.InjectLocation[] getAllSuitableInjectionLocation(ProgramClass targetClass, ProgramMethod targetMethod)
从接口复制的说明:InjectStrategyDetermine all locations (i.e., offsets) suitable for injecting a method invocation.- 指定者:
getAllSuitableInjectionLocation在接口中InjectStrategy- 参数:
targetClass- The class holding the method in which a method invocation will be injected.targetMethod- The target method to have a method invocation injected into.- 返回:
- An array of InjectLocation instances indicating offsets suitable for injection and whether the injection shall take place before or after each offset.
-
-