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:
java.io.Serializable
,java.lang.Comparable<Super.Binder.TypeLocator.ForParameterType>
,Super.Binder.TypeLocator
- Enclosing interface:
- Super.Binder.TypeLocator
public static enum Super.Binder.TypeLocator.ForParameterType extends java.lang.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 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 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 instrumentedType, TypeDescription.Generic parameterType)
Resolves the target type.static Super.Binder.TypeLocator.ForParameterType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Super.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 Super.Binder.TypeLocator.ForParameterType INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Super.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 (Super.Binder.TypeLocator.ForParameterType c : Super.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 Super.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 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.
-
-