protected static class Advice.ArgumentHandler.ForAdvice.ForMethodExit.Simple extends Advice.ArgumentHandler.ForAdvice.ForMethodExit
Advice.ArgumentHandler.ForAdvice.ForMethodExit.Simple, Advice.ArgumentHandler.ForAdvice.ForMethodExit.WithCopiedArguments
Advice.ArgumentHandler.ForAdvice.ForMethodEnter, Advice.ArgumentHandler.ForAdvice.ForMethodExit
Advice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethod
adviceMethod, enterType, instrumentedMethod, throwableSize
THIS_REFERENCE
Modifier | Constructor and Description |
---|---|
protected |
Simple(MethodDescription instrumentedMethod,
MethodDescription adviceMethod,
TypeDefinition enterType,
StackSize throwableSize)
Creates a new simple 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 |
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.
|
enter
protected Simple(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
offset
- The offset to resolve.public int returned()
Advice.ArgumentHandler
public int thrown()
Advice.ArgumentHandler
public int mapped(int offset)
Advice.ArgumentHandler.ForAdvice
offset
- The offset to resolve.Copyright © 2014–2018. All rights reserved.