protected static class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodEnter extends Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodEnter, Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodExit
adviceMethod, instrumentedMethod, methodVisitor
Modifier | Constructor and Description |
---|---|
protected |
ForMethodEnter(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 |
---|---|
protected void |
onAfterCall()
Invoked after the advise method was invoked.
|
void |
storeDefaultValue(MethodVisitor methodVisitor)
Stores a default return value for the advised method.
|
String |
toString() |
apply, prepare
protected ForMethodEnter(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.protected void onAfterCall()
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter
onAfterCall
in class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter
public void storeDefaultValue(MethodVisitor methodVisitor)
Advice.Dispatcher.SuppressionHandler.ReturnValueProducer
methodVisitor
- The instrumented method's method visitor.public String toString()
toString
in class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter
Copyright © 2014–2016. All rights reserved.