Package net.bytebuddy.asm
Interface Advice.Delegator
- All Known Implementing Classes:
Advice.Delegator.ForDynamicInvocation
,Advice.Delegator.ForStaticInvocation
- Enclosing class:
- Advice
protected static interface Advice.Delegator
Materializes an advice invocation within a delegation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Invokes an advice method using a dynamic method call.static enum
Invokes an advice method using a static method call. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit) Materializes an invocation.
-
Method Details
-
apply
void apply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit) Materializes an invocation.- Parameters:
methodVisitor
- The method visitor to apply the materialization to.adviceMethod
- The advice method to materialize.instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.exit
-true
if the materialization is exit advice.
-