Package net.bytebuddy.asm
Enum Advice.Delegator.ForRegularInvocation.Factory
- java.lang.Object
-
- java.lang.Enum<Advice.Delegator.ForRegularInvocation.Factory>
-
- net.bytebuddy.asm.Advice.Delegator.ForRegularInvocation.Factory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Advice.Delegator.ForRegularInvocation.Factory>
,Advice.Delegator.Factory
- Enclosing class:
- Advice.Delegator.ForRegularInvocation
protected static enum Advice.Delegator.ForRegularInvocation.Factory extends java.lang.Enum<Advice.Delegator.ForRegularInvocation.Factory> implements Advice.Delegator.Factory
A factory for a regular method invocation delegator.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Factory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Advice.Delegator
make(MethodDescription.InDefinedShape adviceMethod, boolean exit)
Resolves a delegator.static Advice.Delegator.ForRegularInvocation.Factory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Advice.Delegator.ForRegularInvocation.Factory[]
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.ForRegularInvocation.Factory INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Advice.Delegator.ForRegularInvocation.Factory[] 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.ForRegularInvocation.Factory c : Advice.Delegator.ForRegularInvocation.Factory.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.ForRegularInvocation.Factory 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
-
make
public Advice.Delegator make(MethodDescription.InDefinedShape adviceMethod, boolean exit)
Resolves a delegator.- Specified by:
make
in interfaceAdvice.Delegator.Factory
- Parameters:
adviceMethod
- The advice method.exit
-true
if the advice is applied as exit advice.- Returns:
- An appropriate delegator.
-
-