类 AccumulatedCodeInjector
java.lang.Object
proguard.classfile.util.inject.CodeInjector
proguard.classfile.util.inject.AccumulatedCodeInjector
This utility class allows for injecting multiple static method invocations in multiple target
methods. It allows the repeated use of the API methods defined in the
CodeInjector class.-
嵌套类概要
从类继承的嵌套类/接口 proguard.classfile.util.inject.CodeInjector
CodeInjector.ClassMethodPair -
字段概要
从类继承的字段 proguard.classfile.util.inject.CodeInjector
editor -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明at(InjectStrategy injectStrategy) Specify the location in which the invoke instruction should be injected into.voidcommit()Apply the invoke instruction in accordance to the specifications provided via the `.injectInvokeStatic(...)`, `.into(...)` and `.at(...)` methods.injectInvokeStatic(Clazz clazz, Method method) Specify the static method to be invoked.injectInvokeStatic(Clazz clazz, Method method, InjectedArgument... arguments) Specify the static method to be invoked.into(ProgramClass programClass, ProgramMethod programMethod) Specify the method where a static method invocation will be injected into.store()从类继承的方法 proguard.classfile.util.inject.CodeInjector
getArguments, getContent, getInjectStrategy, getResultLocalIndex, getTargets, readyToCommit, reset
-
构造器详细资料
-
AccumulatedCodeInjector
public AccumulatedCodeInjector() -
AccumulatedCodeInjector
-
-
方法详细资料
-
injectInvokeStatic
从类复制的说明:CodeInjectorSpecify the static method to be invoked.- 覆盖:
injectInvokeStatic在类中CodeInjector- 参数:
clazz- The class containing the static method to be invoked.method- The method to be invoked.
-
injectInvokeStatic
从类复制的说明:CodeInjectorSpecify the static method to be invoked.- 覆盖:
injectInvokeStatic在类中CodeInjector- 参数:
clazz- The class containing the static method to be invoked.method- The method to be invoked.arguments- A list of arguments to be passed to the method to be invoked.
-
into
从类复制的说明:CodeInjectorSpecify the method where a static method invocation will be injected into.- 覆盖:
into在类中CodeInjector- 参数:
programClass- The program class that has the method where a static method invocation will be injected into.programMethod- The method where a static method invocation will be injected into.
-
at
从类复制的说明:CodeInjectorSpecify the location in which the invoke instruction should be injected into.- 覆盖:
at在类中CodeInjector- 参数:
injectStrategy- The implementation of the InjectStrategy interface which determines the offset to inject the invoke instruction.
-
store
- 覆盖:
store在类中CodeInjector
-
commit
public void commit()从类复制的说明:CodeInjectorApply the invoke instruction in accordance to the specifications provided via the `.injectInvokeStatic(...)`, `.into(...)` and `.at(...)` methods.- 覆盖:
commit在类中CodeInjector
-