接口 XposedInterface.Invoker<T extends XposedInterface.Invoker<T,U>,U extends Executable>
- 所有已知子接口:
XposedInterface.CtorInvoker<T>
- 封闭接口:
XposedInterface
public static interface XposedInterface.Invoker<T extends XposedInterface.Invoker<T,U>,U extends Executable>
Invoker for a method or constructor. Invocations through invokers will bypass access checks.
-
嵌套类概要
嵌套类修饰符和类型接口说明static interfaceType of the invoker, which determines the hook chain to be invoked -
方法概要
修饰符和类型方法说明Invokes the method (or the constructor as a method) through the hook chain determined by the invoker's type.invokeSpecial(Object thisObject, Object... args) Invokes the special (non-virtual) method (or the constructor as a method) on a given object instance, similar to the functionality ofCallNonVirtual<type>Methodin JNI, which invokes an instance (nonstatic) method on a Java object.Sets the type of the invoker, which determines the hook chain to be invoked
-
方法详细资料
-
setType
Sets the type of the invoker, which determines the hook chain to be invoked -
invoke
Object invoke(Object thisObject, Object... args) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException Invokes the method (or the constructor as a method) through the hook chain determined by the invoker's type.- 参数:
thisObject- For non-static calls, thethispointer, otherwisenullargs- The arguments used for the method call- 返回:
- The result returned from the invoked method
For void methods and constructors, always returns
null. - 抛出:
InvocationTargetExceptionIllegalArgumentExceptionIllegalAccessException- 另请参阅:
-
invokeSpecial
Object invokeSpecial(@NonNull Object thisObject, Object... args) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException Invokes the special (non-virtual) method (or the constructor as a method) on a given object instance, similar to the functionality ofCallNonVirtual<type>Methodin JNI, which invokes an instance (nonstatic) method on a Java object. This method is useful when you need to call a specific method on an object, bypassing any overridden methods in subclasses and directly invoking the method defined in the specified class.This method is useful when you need to call
super.xxx()in a hooked constructor.- 参数:
thisObject- Thethispointerargs- The arguments used for the method call- 返回:
- The result returned from the invoked method
For void methods and constructors, always returns
null. - 抛出:
InvocationTargetExceptionIllegalArgumentExceptionIllegalAccessException- 另请参阅:
-