Enum Super.Binder.TypeLocator.ForParameterType
java.lang.Object
java.lang.Enum<Super.Binder.TypeLocator.ForParameterType>
net.bytebuddy.implementation.bind.annotation.Super.Binder.TypeLocator.ForParameterType
- All Implemented Interfaces:
Serializable
,Comparable<Super.Binder.TypeLocator.ForParameterType>
,java.lang.constant.Constable
,Super.Binder.TypeLocator
- Enclosing interface:
Super.Binder.TypeLocator
public static enum Super.Binder.TypeLocator.ForParameterType
extends Enum<Super.Binder.TypeLocator.ForParameterType>
implements Super.Binder.TypeLocator
A type locator that yields the target parameter's type.
-
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.bind.annotation.Super.Binder.TypeLocator
Super.Binder.TypeLocator.ForInstrumentedType, Super.Binder.TypeLocator.ForParameterType, Super.Binder.TypeLocator.ForType
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription instrumentedType, TypeDescription.Generic parameterType) Resolves the target type.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
-
ForParameterType
private ForParameterType()
-
-
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 TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType) Resolves the target type.- Specified by:
resolve
in interfaceSuper.Binder.TypeLocator
- Parameters:
instrumentedType
- The instrumented type.parameterType
- The type of the target parameter.- Returns:
- The proxy type.
-