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:
java.io.Serializable
,java.lang.Comparable<InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod>
,InvokeDynamic.InvocationProvider.NameProvider
- Enclosing interface:
- InvokeDynamic.InvocationProvider.NameProvider
public static enum InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod extends java.lang.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 interface net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.NameProvider
InvokeDynamic.InvocationProvider.NameProvider.ForExplicitName, InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForInterceptedMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
resolve(MethodDescription methodDescription)
Resolves the name given the intercepted method.static InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod[] 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 (InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod c : InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InvokeDynamic.InvocationProvider.NameProvider.ForInterceptedMethod 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
-
resolve
public java.lang.String resolve(MethodDescription methodDescription)
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.
-
-