@HashCodeAndEqualsPlugin.Enhance public static class Advice.Delegator.ForDynamicInvocation extends Object implements Advice.Delegator
Advice.Delegator.ForDynamicInvocation, Advice.Delegator.ForStaticInvocation
Modifier | Constructor and Description |
---|---|
protected |
ForDynamicInvocation(MethodDescription.InDefinedShape bootstrapMethod)
Creates a delegator for a dynamic method invocation.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(MethodVisitor methodVisitor,
MethodDescription.InDefinedShape adviceMethod,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
boolean exit)
Materializes an invocation.
|
protected static Advice.Delegator |
of(MethodDescription.InDefinedShape bootstrapMethod)
Creates a new dynamic invocation delegator.
|
protected ForDynamicInvocation(MethodDescription.InDefinedShape bootstrapMethod)
bootstrapMethod
- The bootstrap method.protected static Advice.Delegator of(MethodDescription.InDefinedShape bootstrapMethod)
bootstrapMethod
- The bootstrap method or constructor.public void apply(MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit)
apply
in interface Advice.Delegator
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.Copyright © 2014–2020. All rights reserved.