public abstract static class Advice.ArgumentHandler.ForAdvice.ForMethodExit extends Object implements Advice.ArgumentHandler.ForAdvice
Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.ArgumentHandler.ForAdvice.ForMethodExit.Simple
A standard implementation of an argument handler for an exit advice.
|
protected static class |
Advice.ArgumentHandler.ForAdvice.ForMethodExit.WithCopiedArguments
An argument handler that copies all arguments after completing the enter advice such that no reassignments during the
executing of the instrumented method take effect.
|
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 |
enter()
Resolves the offset of the enter value of the enter advice.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mapped
argument, returned, thrown
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 enter()
Advice.ArgumentHandler
enter
in interface Advice.ArgumentHandler
Copyright © 2014–2018. All rights reserved.