@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.ForInstrumentedMethod| Modifier and Type | Field and Description |
|---|---|
private TypeDefinition |
enterType
The enter type or
void if no enter type is defined. |
private StackSize |
throwableSize
The stack size of a possibly stored throwable.
|
adviceMethod, exitType, instrumentedMethod, namedTypesTHIS_REFERENCE| Modifier | Constructor and Description |
|---|---|
protected |
ForMethodExit(MethodDescription instrumentedMethod,
MethodDescription adviceMethod,
TypeDefinition exitType,
java.util.TreeMap<java.lang.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, namedprivate final TypeDefinition enterType
void if no enter type is defined.private final StackSize throwableSize
protected ForMethodExit(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.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.