-
public class PatcherAPI
-
-
Constructor Summary
Constructors Constructor Description PatcherAPI(Logger logger)
-
Method Summary
Modifier and Type Method Description Runnablepatch(@NonNull() String forClass, @NonNull() String fn, @NonNull() Array<Class<out Object>> paramTypes, @NonNull() XC_MethodHook hook)Patches a method. Runnablepatch(@NonNull() Class<out Object> clazz, @NonNull() String fn, @NonNull() Array<Class<out Object>> paramTypes, @NonNull() XC_MethodHook hook)Patches a method. Runnablepatch(@NonNull() Member m, @NonNull() XC_MethodHook hook)Patches a method or constructor. Runnablepatch(@NonNull() Member m, @NonNull() Action1<XC_MethodHook.MethodHookParam> callback)Patches a method or constructor. voidunpatchAll()Removes all patches. -
-
Constructor Detail
-
PatcherAPI
PatcherAPI(Logger logger)
-
-
Method Detail
-
patch
Runnable patch(@NonNull() String forClass, @NonNull() String fn, @NonNull() Array<Class<out Object>> paramTypes, @NonNull() XC_MethodHook hook)
Patches a method.
- Parameters:
forClass- Class to patch.fn- Method to patch.paramTypes- Parameters of thefn.hook- Callback for the patch.
-
patch
Runnable patch(@NonNull() Class<out Object> clazz, @NonNull() String fn, @NonNull() Array<Class<out Object>> paramTypes, @NonNull() XC_MethodHook hook)
Patches a method.
- Parameters:
clazz- Class to patch.fn- Method to patch.paramTypes- Parameters of thefn.hook- Callback for the patch.
-
patch
Runnable patch(@NonNull() Member m, @NonNull() XC_MethodHook hook)
Patches a method or constructor.
- Parameters:
m- Method or constructor to patch.hook- Callback for the patch.
-
patch
Runnable patch(@NonNull() Member m, @NonNull() Action1<XC_MethodHook.MethodHookParam> callback)
Patches a method or constructor.
- Parameters:
m- Method or constructor to patch.callback- Callback for the patch.
-
unpatchAll
void unpatchAll()
Removes all patches.
-
-
-
-