Class Super.Binder.TypeLocator.ForType
- java.lang.Object
-
- net.bytebuddy.implementation.bind.annotation.Super.Binder.TypeLocator.ForType
-
- All Implemented Interfaces:
Super.Binder.TypeLocator
- Enclosing interface:
- Super.Binder.TypeLocator
@Enhance public static class Super.Binder.TypeLocator.ForType extends java.lang.Object implements Super.Binder.TypeLocator
A type locator that returns a given 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
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription
typeDescription
The type to be returned upon resolution.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForType(TypeDescription typeDescription)
Creates a new type locator for a given type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Super.Binder.TypeLocator
of(TypeDescription typeDescription)
Resolves a type locator based upon an annotation value.TypeDescription
resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType)
Resolves the target type.
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
The type to be returned upon resolution.
-
-
Constructor Detail
-
ForType
protected ForType(TypeDescription typeDescription)
Creates a new type locator for a given type.- Parameters:
typeDescription
- The type to be returned upon resolution.
-
-
Method Detail
-
of
protected static Super.Binder.TypeLocator of(TypeDescription typeDescription)
Resolves a type locator based upon an annotation value.- Parameters:
typeDescription
- The annotation's value.- Returns:
- The appropriate type locator.
-
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.
-
-