Package net.bytebuddy.asm
Enum Advice.Delegator.ForStaticInvocation
- java.lang.Object
-
- java.lang.Enum<Advice.Delegator.ForStaticInvocation>
-
- net.bytebuddy.asm.Advice.Delegator.ForStaticInvocation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Advice.Delegator.ForStaticInvocation>
,Advice.Delegator
- Enclosing interface:
- Advice.Delegator
public static enum Advice.Delegator.ForStaticInvocation extends java.lang.Enum<Advice.Delegator.ForStaticInvocation> implements Advice.Delegator
Invokes an advice method using a static method call.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Delegator
Advice.Delegator.ForDynamicInvocation, Advice.Delegator.ForStaticInvocation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForStaticInvocation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit)
Materializes an invocation.static Advice.Delegator.ForStaticInvocation
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Advice.Delegator.ForStaticInvocation INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Advice.Delegator.ForStaticInvocation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Advice.Delegator.ForStaticInvocation c : Advice.Delegator.ForStaticInvocation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Advice.Delegator.ForStaticInvocation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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.
-
-