public static class XC_MethodHook.MethodHookParam extends XCallback.Param
| 限定符和类型 | 字段和说明 |
|---|---|
java.lang.Object[] |
args
Arguments to the method call
|
java.lang.reflect.Member |
method
Description of the hooked method
|
java.lang.Object |
thisObject
The
this reference for an instance method, or null for static methods |
callbacks| 构造器和说明 |
|---|
XC_MethodHook.MethodHookParam() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
getResult()
Returns the result of the method call
|
java.lang.Object |
getResultOrThrowable()
Returns the result of the method call, or throws the Throwable caused by it
|
java.lang.Throwable |
getThrowable()
Returns the
Throwable thrown by the method, or null |
boolean |
hasThrowable()
Returns true if an exception was thrown by the method
|
void |
setResult(java.lang.Object result)
Modify the result of the method call.
|
void |
setThrowable(java.lang.Throwable throwable)
Modify the exception thrown of the method call.
|
getExtra, getObjectExtra, setObjectExtrapublic java.lang.reflect.Member method
public java.lang.Object thisObject
this reference for an instance method, or null for static methodspublic java.lang.Object[] args
public java.lang.Object getResult()
public void setResult(java.lang.Object result)
public java.lang.Throwable getThrowable()
Throwable thrown by the method, or nullpublic boolean hasThrowable()
public void setThrowable(java.lang.Throwable throwable)
public java.lang.Object getResultOrThrowable()
throws java.lang.Throwable
java.lang.Throwable