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 classInvokes an advice method using a dynamic method call.static enumInvokes an advice method using a static method call. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(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-trueif the materialization is exit advice.
-