protected static class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodExit extends Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodEnter, Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodExitadviceMethod, argumentHandler, implementationContext, methodSizeHandler, methodVisitor, stackMapFrameHandler| Modifier | Constructor and Description |
|---|---|
protected |
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
List<Advice.OffsetMapping.Target> offsetMappings,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler)
Creates a new advice method writer.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getReturnValueOffset()
Resolves the offset of the advice method's local variable.
|
void |
initialize()
Initialized the advice's methods local variables.
|
apply, prepareprotected ForMethodExit(MethodDescription.InDefinedShape adviceMethod, List<Advice.OffsetMapping.Target> offsetMappings, MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler)
adviceMethod - The advice method.offsetMappings - The offset mappings available to this advice.methodVisitor - The method visitor for writing the instrumented method.implementationContext - The implementation context to use.argumentHandler - A handler for accessing values on the local variable array.methodSizeHandler - A handler for computing the method size requirements.stackMapFrameHandler - A handler for translating and injecting stack map frames.suppressionHandler - A bound suppression handler that is used for suppressing exceptions of this advice method.relocationHandler - A bound relocation handler that is responsible for considering a non-standard control flow.public void initialize()
protected int getReturnValueOffset()
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWritervoid.getReturnValueOffset in class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriterCopyright © 2014–2019. All rights reserved.