Package net.bytebuddy.asm
Enum Advice.BootstrapArgumentResolver.ForDefaultValues.Factory
java.lang.Object
java.lang.Enum<Advice.BootstrapArgumentResolver.ForDefaultValues.Factory>
net.bytebuddy.asm.Advice.BootstrapArgumentResolver.ForDefaultValues.Factory
- All Implemented Interfaces:
Serializable
,Comparable<Advice.BootstrapArgumentResolver.ForDefaultValues.Factory>
,java.lang.constant.Constable
,Advice.BootstrapArgumentResolver.Factory
- Enclosing class:
Advice.BootstrapArgumentResolver.ForDefaultValues
public static enum Advice.BootstrapArgumentResolver.ForDefaultValues.Factory
extends Enum<Advice.BootstrapArgumentResolver.ForDefaultValues.Factory>
implements Advice.BootstrapArgumentResolver.Factory
A factory for creating a
Advice.BootstrapArgumentResolver.ForDefaultValues
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve
(MethodDescription.InDefinedShape adviceMethod, boolean exit) Creates a bootstrap argument resolver for a given advice.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Factory
private Factory()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
resolve
public Advice.BootstrapArgumentResolver resolve(MethodDescription.InDefinedShape adviceMethod, boolean exit) Creates a bootstrap argument resolver for a given advice.- Specified by:
resolve
in interfaceAdvice.BootstrapArgumentResolver.Factory
- Parameters:
adviceMethod
- The advice method.exit
-true
if the method is bound as exit advice.- Returns:
- An appropriate bootstrap argument resolver.
-