protected static class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodExit extends Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter implements Advice.Dispatcher.Bound.ForMethodExit
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodEnter, Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodExitAdvice.Dispatcher.Bound.ForMethodEnter, Advice.Dispatcher.Bound.ForMethodExit, Advice.Dispatcher.Bound.SkipHandleradviceMethod, instrumentedMethod, methodSizeHandler, methodVisitor, stackMapFrameHandler| Modifier | Constructor and Description |
|---|---|
protected |
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
MethodDescription.InDefinedShape instrumentedMethod,
List<Advice.Dispatcher.OffsetMapping.Target> offsetMappings,
MethodVisitor methodVisitor,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler)
Creates a new advice method writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Applies this dispatcher.
|
void |
onDefaultValue(MethodVisitor methodVisitor)
Instructs this return value producer to assure the production of a default value for the return type of the currently handled method.
|
protected void |
onMethodReturn()
Invoked directly after the advice method was called.
|
String |
toString() |
doApply, prepareclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprepareprotected ForMethodExit(MethodDescription.InDefinedShape adviceMethod, MethodDescription.InDefinedShape instrumentedMethod, List<Advice.Dispatcher.OffsetMapping.Target> offsetMappings, MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler)
adviceMethod - The advice method.instrumentedMethod - The instrumented method.offsetMappings - The offset mappings available to this advice.methodVisitor - The method visitor for writing the instrumented method.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.public void apply()
Advice.Dispatcher.Bound.ForMethodExitapply in interface Advice.Dispatcher.Bound.ForMethodExitprotected void onMethodReturn()
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriteronMethodReturn in class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriterpublic void onDefaultValue(MethodVisitor methodVisitor)
Advice.Dispatcher.SuppressionHandler.ReturnValueProduceronDefaultValue in interface Advice.Dispatcher.SuppressionHandler.ReturnValueProducermethodVisitor - The method visitor to write the default value to.public String toString()
toString in class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriterCopyright © 2014–2016. All rights reserved.