protected static class Advice.ArgumentHandler.ForAdvice.ForMethodExit.Simple extends Advice.ArgumentHandler.ForAdvice.ForMethodExit
Advice.ArgumentHandler.ForAdvice.ForMethodExit.Simple, Advice.ArgumentHandler.ForAdvice.ForMethodExit.WithCopiedArgumentsAdvice.ArgumentHandler.ForAdvice.ForMethodEnter, Advice.ArgumentHandler.ForAdvice.ForMethodExitAdvice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethodadviceMethod, enterType, instrumentedMethod, throwableSizeTHIS_REFERENCE| Modifier | Constructor and Description |
|---|---|
protected |
Simple(MethodDescription instrumentedMethod,
MethodDescription adviceMethod,
TypeDefinition enterType,
StackSize throwableSize)
Creates a new simple argument handler for an exit advice.
|
| Modifier and Type | Method and Description |
|---|---|
int |
argument(int offset)
Resolves an offset relative to an offset of the instrumented method.
|
int |
mapped(int offset)
Resolves an offset of the advice method.
|
int |
returned()
Resolves the offset of the returned value of the instrumented method.
|
int |
thrown()
Resolves the offset of the thrown exception of the instrumented method.
|
enterprotected Simple(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition enterType, StackSize throwableSize)
instrumentedMethod - The instrumented method.adviceMethod - The advice method.enterType - The enter type or void if no enter type is defined.throwableSize - The stack size of a possibly stored throwable.public int argument(int offset)
Advice.ArgumentHandleroffset - The offset to resolve.public int returned()
Advice.ArgumentHandlerpublic int thrown()
Advice.ArgumentHandlerpublic int mapped(int offset)
Advice.ArgumentHandler.ForAdviceoffset - The offset to resolve.Copyright © 2014–2018. All rights reserved.