@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(Handle handle)
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 methodDescription)
Creates a new dynamic invocation delegator.
|
protected ForDynamicInvocation(Handle handle)
handle
- The handle of the referred bootstrap method.protected static Advice.Delegator of(MethodDescription.InDefinedShape methodDescription)
methodDescription
- 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.