类 AccumulatedCodeInjector
- java.lang.Object
-
- proguard.classfile.util.inject.CodeInjector
-
- proguard.classfile.util.inject.AccumulatedCodeInjector
-
public class AccumulatedCodeInjector extends CodeInjector
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 theCodeInjectorclass.
-
-
嵌套类概要
-
从类继承的嵌套类/接口 proguard.classfile.util.inject.CodeInjector
CodeInjector.ClassMethodPair
-
-
字段概要
-
从类继承的字段 proguard.classfile.util.inject.CodeInjector
editor
-
-
构造器概要
构造器 构造器 说明 AccumulatedCodeInjector()AccumulatedCodeInjector(CodeAttributeEditor editor)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CodeInjectorat(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.CodeInjectorinjectInvokeStatic(Clazz clazz, Method method)Specify the static method to be invoked.CodeInjectorinjectInvokeStatic(Clazz clazz, Method method, InjectedArgument... arguments)Specify the static method to be invoked.CodeInjectorinto(ProgramClass programClass, ProgramMethod programMethod)Specify the method where a static method invocation will be injected into.LocalVariablestore()-
从类继承的方法 proguard.classfile.util.inject.CodeInjector
getArguments, getContent, getInjectStrategy, getResultLocalIndex, getTargets, readyToCommit, reset
-
-
-
-
构造器详细资料
-
AccumulatedCodeInjector
public AccumulatedCodeInjector()
-
AccumulatedCodeInjector
public AccumulatedCodeInjector(CodeAttributeEditor editor)
-
-
方法详细资料
-
injectInvokeStatic
public CodeInjector injectInvokeStatic(Clazz clazz, Method method)
从类复制的说明: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
public CodeInjector injectInvokeStatic(Clazz clazz, Method method, InjectedArgument... arguments)
从类复制的说明: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
public CodeInjector into(ProgramClass programClass, ProgramMethod programMethod)
从类复制的说明: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
public CodeInjector at(InjectStrategy injectStrategy)
从类复制的说明: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
public LocalVariable 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
-
-