@HashCodeAndEqualsPlugin.Enhance public static class Advice.ArgumentHandler.ForAdvice.ForMethodExit extends Object implements Advice.ArgumentHandler.ForAdvice
Advice.ArgumentHandler.ForAdvice.ForMethodEnter, Advice.ArgumentHandler.ForAdvice.ForMethodExitAdvice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethod| Modifier and Type | Field and Description |
|---|---|
protected MethodDescription |
adviceMethod
The advice method.
|
protected TypeDefinition |
enterType
The enter type or
void if no enter type is defined. |
protected MethodDescription |
instrumentedMethod
The instrumented method.
|
protected StackSize |
throwableSize
The stack size of a possibly stored throwable.
|
THIS_REFERENCE| Modifier | Constructor and Description |
|---|---|
protected |
ForMethodExit(MethodDescription instrumentedMethod,
MethodDescription adviceMethod,
TypeDefinition enterType,
StackSize throwableSize)
Creates a new 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 |
enter()
Resolves the offset of the enter value of the enter advice.
|
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.
|
protected final MethodDescription instrumentedMethod
protected final MethodDescription adviceMethod
protected final TypeDefinition enterType
void if no enter type is defined.protected final StackSize throwableSize
protected ForMethodExit(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.ArgumentHandlerargument in interface Advice.ArgumentHandleroffset - The offset to resolve.public int enter()
Advice.ArgumentHandlerenter in interface Advice.ArgumentHandlerpublic int returned()
Advice.ArgumentHandlerreturned in interface Advice.ArgumentHandlerpublic int thrown()
Advice.ArgumentHandlerthrown in interface Advice.ArgumentHandlerpublic int mapped(int offset)
Advice.ArgumentHandler.ForAdvicemapped in interface Advice.ArgumentHandler.ForAdviceoffset - The offset to resolve.Copyright © 2014–2018. All rights reserved.