@HashCodeAndEqualsPlugin.Enhance protected static class Advice.ArgumentHandler.ForAdvice.Default.ForMethodExit extends Advice.ArgumentHandler.ForAdvice.Default
Advice.ArgumentHandler.ForAdvice.Default.ForMethodEnter, Advice.ArgumentHandler.ForAdvice.Default.ForMethodExitAdvice.ArgumentHandler.ForAdvice.DefaultAdvice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethodadviceMethod, exitType, instrumentedMethod, namedTypesTHIS_REFERENCE| Modifier | Constructor and Description |
|---|---|
protected |
ForMethodExit(MethodDescription instrumentedMethod,
MethodDescription adviceMethod,
TypeDefinition exitType,
SortedMap<String,TypeDefinition> namedTypes,
TypeDefinition enterType,
StackSize throwableSize)
Creates a new argument handler for an exit advice method.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
argument, enter, exit, namedprotected ForMethodExit(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, SortedMap<String,TypeDefinition> namedTypes, TypeDefinition enterType, StackSize throwableSize)
instrumentedMethod - The instrumented method.adviceMethod - The advice method.exitType - The exit type or void if no exit type is defined.namedTypes - A mapping of all available local variables by their name to their type.enterType - The enter type or void if no enter type is defined.throwableSize - The stack size of a possibly stored throwable.public int returned()
public int thrown()
public int mapped(int offset)
offset - The offset to resolve.Copyright © 2014–2023. All rights reserved.