public static enum Advice.Delegator.ForStaticInvocation extends Enum<Advice.Delegator.ForStaticInvocation> implements Advice.Delegator
Advice.Delegator.ForDynamicInvocation, Advice.Delegator.ForStaticInvocation| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(MethodVisitor methodVisitor,
MethodDescription.InDefinedShape adviceMethod,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
boolean exit)
Materializes an invocation.
|
static Advice.Delegator.ForStaticInvocation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.Delegator.ForStaticInvocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.Delegator.ForStaticInvocation INSTANCE
public static Advice.Delegator.ForStaticInvocation[] values()
for (Advice.Delegator.ForStaticInvocation c : Advice.Delegator.ForStaticInvocation.values()) System.out.println(c);
public static Advice.Delegator.ForStaticInvocation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void apply(MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit)
apply in interface Advice.DelegatormethodVisitor - 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–2023. All rights reserved.