Package net.bytebuddy.implementation
Enum InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod
java.lang.Object
java.lang.Enum<InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod>
net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod
- All Implemented Interfaces:
Serializable
,Comparable<InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod>
,java.lang.constant.Constable
,InvokeDynamic.InvocationProvider.NameProvider
- Enclosing interface:
InvokeDynamic.InvocationProvider.NameProvider
public static enum InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod
extends Enum<InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod>
implements InvokeDynamic.InvocationProvider.NameProvider
A name provider that provides the name of the intercepted method.
-
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.implementation.InvokeDynamic.InvocationProvider.NameProvider
InvokeDynamic.InvocationProvider.NameProvider.ForExplicitName, InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve
(MethodDescription methodDescription) Resolves the name given the intercepted method.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
-
ForInterceptedMethod
private ForInterceptedMethod()
-
-
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
public static InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
resolve
Resolves the name given the intercepted method.- Specified by:
resolve
in interfaceInvokeDynamic.InvocationProvider.NameProvider
- Parameters:
methodDescription
- The intercepted method.- Returns:
- The name of the method to be bound by the bootstrap method.
-