Enum Default.Binder.TypeLocator.ForParameterType
- java.lang.Object
-
- java.lang.Enum<Default.Binder.TypeLocator.ForParameterType>
-
- net.bytebuddy.implementation.bind.annotation.Default.Binder.TypeLocator.ForParameterType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Default.Binder.TypeLocator.ForParameterType>
,Default.Binder.TypeLocator
- Enclosing interface:
- Default.Binder.TypeLocator
public static enum Default.Binder.TypeLocator.ForParameterType extends java.lang.Enum<Default.Binder.TypeLocator.ForParameterType> implements Default.Binder.TypeLocator
A type locator that yields the target parameter's type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.Default.Binder.TypeLocator
Default.Binder.TypeLocator.ForParameterType, Default.Binder.TypeLocator.ForType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForParameterType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescription
resolve(TypeDescription.Generic parameterType)
Resolves the target type.static Default.Binder.TypeLocator.ForParameterType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Default.Binder.TypeLocator.ForParameterType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Default.Binder.TypeLocator.ForParameterType INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Default.Binder.TypeLocator.ForParameterType[] 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 (Default.Binder.TypeLocator.ForParameterType c : Default.Binder.TypeLocator.ForParameterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Default.Binder.TypeLocator.ForParameterType 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 TypeDescription resolve(TypeDescription.Generic parameterType)
Resolves the target type.- Specified by:
resolve
in interfaceDefault.Binder.TypeLocator
- Parameters:
parameterType
- The type of the target parameter.- Returns:
- The proxy type.
-
-