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.ForMethodExitadviceMethod, argumentHandler, implementationContext, methodSizeHandler, methodVisitor, stackMapFrameHandler| Modifier | Constructor and Description |
|---|---|
protected |
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
List<Advice.OffsetMapping.Target> offsetMappings,
org.objectweb.asm.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 |
|---|---|
void |
onDefaultValue(org.objectweb.asm.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.
|
apply, prepareprotected ForMethodEnter(MethodDescription.InDefinedShape adviceMethod, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.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.protected void onMethodReturn()
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriteronMethodReturn in class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriterpublic void onDefaultValue(org.objectweb.asm.MethodVisitor methodVisitor)
Advice.Dispatcher.SuppressionHandler.ReturnValueProducermethodVisitor - The method visitor to write the default value to.Copyright © 2014–2018. All rights reserved.