@HashCodeAndEqualsPlugin.Enhance public static class Advice.ArgumentHandler.ForAdvice.ForMethodExit extends Object implements Advice.ArgumentHandler.ForAdvice
Advice.ArgumentHandler.ForAdvice.ForMethodEnter, Advice.ArgumentHandler.ForAdvice.ForMethodExit
Advice.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.ArgumentHandler
argument
in interface Advice.ArgumentHandler
offset
- The offset to resolve.public int enter()
Advice.ArgumentHandler
enter
in interface Advice.ArgumentHandler
public int returned()
Advice.ArgumentHandler
returned
in interface Advice.ArgumentHandler
public int thrown()
Advice.ArgumentHandler
thrown
in interface Advice.ArgumentHandler
public int mapped(int offset)
Advice.ArgumentHandler.ForAdvice
mapped
in interface Advice.ArgumentHandler.ForAdvice
offset
- The offset to resolve.Copyright © 2014–2018. All rights reserved.