Package net.bytebuddy.asm
Enum Class Advice.Delegator.ForStaticInvocation
java.lang.Object
java.lang.Enum<Advice.Delegator.ForStaticInvocation>
net.bytebuddy.asm.Advice.Delegator.ForStaticInvocation
- All Implemented Interfaces:
Serializable
,Comparable<Advice.Delegator.ForStaticInvocation>
,Constable
,Advice.Delegator
- Enclosing interface:
- Advice.Delegator
public static enum Advice.Delegator.ForStaticInvocation
extends Enum<Advice.Delegator.ForStaticInvocation>
implements Advice.Delegator
Invokes an advice method using a static method call.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Delegator
Advice.Delegator.ForDynamicInvocation, Advice.Delegator.ForStaticInvocation
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit) Materializes an invocation.Returns the enum constant of this class with the specified name.static Advice.Delegator.ForStaticInvocation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
ForStaticInvocation
private ForStaticInvocation()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
apply
public void apply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit) Materializes an invocation.- Specified by:
apply
in interfaceAdvice.Delegator
- 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.
-