public class MethodCallAdapter extends Object implements MethodCallListener, MethodCallRewrite
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
chainArgs |
protected boolean |
redefArgs |
| Constructor and Description |
|---|
MethodCallAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginCall(Object proxy,
Object source,
Method meth,
Object[] args)
Вызывается перед началом метода
|
HookArguments |
beginCallRewrite(Object proxy,
Object source,
Method meth,
Object[] args)
Вызывается перед началом метода
|
HookResult |
endCall(Object proxy,
Object source,
Method meth,
Object[] args,
Object callResult,
Throwable err)
Вызывается по завершению метода
|
boolean |
isChainArgs()
Использовать true - предыдущий результат преписи (или оригинал, если эта первая перепись) / false - оригинальные аргументы
|
boolean |
isRedefArgs()
Переписывать аргументы вызова
|
void |
setChainArgs(boolean chainArgs) |
void |
setRedefArgs(boolean redefArgs) |
protected volatile boolean redefArgs
protected volatile boolean chainArgs
public boolean isRedefArgs()
MethodCallRewriteisRedefArgs in interface MethodCallRewritepublic void setRedefArgs(boolean redefArgs)
public boolean isChainArgs()
MethodCallRewriteisChainArgs in interface MethodCallRewritepublic void setChainArgs(boolean chainArgs)
public HookArguments beginCallRewrite(Object proxy, Object source, Method meth, Object[] args)
MethodCallRewritebeginCallRewrite in interface MethodCallRewriteproxy - Прокси объектsource - Исходный объектmeth - Методargs - Аргументыpublic void beginCall(Object proxy, Object source, Method meth, Object[] args)
MethodCallListenerbeginCall in interface MethodCallListenerproxy - Прокси объектsource - Исходный объектmeth - Методargs - Аргументыpublic HookResult endCall(Object proxy, Object source, Method meth, Object[] args, Object callResult, Throwable err)
MethodCallListenerendCall in interface MethodCallListenerproxy - Прокси объектsource - Исходный объектmeth - Методargs - АргументыcallResult - Результат вызоваerr - Ошибка вызоваCopyright © 2018. All rights reserved.