@HashCodeAndEqualsPlugin.Enhance protected static class Advice.ArgumentHandler.ForAdvice.Default.ForMethodExit extends Advice.ArgumentHandler.ForAdvice.Default
Advice.ArgumentHandler.ForAdvice.Default.ForMethodEnter, Advice.ArgumentHandler.ForAdvice.Default.ForMethodExit
Advice.ArgumentHandler.ForAdvice.Default
Advice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethod
exitType, instrumentedMethod, namedTypes, typeToken
THIS_REFERENCE
Modifier | Constructor and Description |
---|---|
protected |
ForMethodExit(MethodDescription instrumentedMethod,
MethodDescription.TypeToken typeToken,
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, named
protected ForMethodExit(MethodDescription instrumentedMethod, MethodDescription.TypeToken typeToken, TypeDefinition exitType, SortedMap<String,TypeDefinition> namedTypes, TypeDefinition enterType, StackSize throwableSize)
instrumentedMethod
- The instrumented method.typeToken
- The type token of 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–2025. All rights reserved.