接口 XposedInterface.Chain
- 封闭接口:
XposedInterface
public static interface XposedInterface.Chain
Interceptor chain for a method or constructor. Chain objects cannot be shared among threads or
reused after
XposedInterface.Hooker.intercept(Chain) ends.-
方法概要
修饰符和类型方法说明getArg(int index) Gets the argument at the given index.getArgs()Gets the arguments.Gets the method / constructor being hooked.Gets thethispointer for the call, ornullfor static methods.proceed()Proceeds to the next interceptor in the chain with the same arguments andthispointer.Proceeds to the next interceptor in the chain with the given arguments and the samethispointer.proceedWith(Object thisObject) Proceeds to the next interceptor in the chain with the same arguments and giventhispointer.proceedWith(Object thisObject, Object[] args) Proceeds to the next interceptor in the chain with the given arguments andthispointer.
-
方法详细资料
-
getExecutable
Gets the method / constructor being hooked. -
getThisObject
Object getThisObject()Gets thethispointer for the call, ornullfor static methods. -
getArgs
Gets the arguments. The returned list is immutable. If you want to change the arguments, you should callproceed(Object...)orproceedWith(Object, Object...)with the new arguments. -
getArg
Gets the argument at the given index.- 参数:
index- The argument index- 返回:
- The argument at the given index
- 抛出:
IndexOutOfBoundsException- if index is out of boundsClassCastException- if the argument cannot be cast to the expected type
-
proceed
Proceeds to the next interceptor in the chain with the same arguments andthispointer.- 返回:
- The result returned from next interceptor or the original executable if current
interceptor is the last one in the chain.
For void methods and constructors, always returns
null. - 抛出:
Throwable- if any interceptor or the original executable throws an exception
-
proceed
Proceeds to the next interceptor in the chain with the given arguments and the samethispointer.- 参数:
args- The arguments used for the call- 返回:
- The result returned from next interceptor or the original executable if current
interceptor is the last one in the chain.
For void methods and constructors, always returns
null. - 抛出:
Throwable- if any interceptor or the original executable throws an exception
-
proceedWith
Proceeds to the next interceptor in the chain with the same arguments and giventhispointer. Static method interceptors should not call this.- 参数:
thisObject- Thethispointer for the call- 返回:
- The result returned from next interceptor or the original executable if current
interceptor is the last one in the chain.
For void methods and constructors, always returns
null. - 抛出:
Throwable- if any interceptor or the original executable throws an exception
-
proceedWith
Proceeds to the next interceptor in the chain with the given arguments andthispointer. Static method interceptors should not call this.- 参数:
thisObject- Thethispointer for the callargs- The arguments used for the call- 返回:
- The result returned from next interceptor or the original executable if current
interceptor is the last one in the chain.
For void methods and constructors, always returns
null. - 抛出:
Throwable- if any interceptor or the original executable throws an exception
-