Package net.bytebuddy.dynamic.scaffold
Class FieldLocator.ForExactType.Factory
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.FieldLocator.ForExactType.Factory
-
- All Implemented Interfaces:
FieldLocator.Factory
- Enclosing class:
- FieldLocator.ForExactType
@Enhance public static class FieldLocator.ForExactType.Factory extends java.lang.Object implements FieldLocator.Factory
A factory for creating aFieldLocator.ForExactType
.
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription
typeDescription
The type for which to locate a field.
-
Constructor Summary
Constructors Constructor Description Factory(TypeDescription typeDescription)
Creates a new factory for a field locator that locates a field for an exact type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldLocator
make(TypeDescription typeDescription)
Creates a field locator for a given type.
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
The type for which to locate a field.
-
-
Constructor Detail
-
Factory
public Factory(TypeDescription typeDescription)
Creates a new factory for a field locator that locates a field for an exact type.- Parameters:
typeDescription
- The type for which to locate a field.
-
-
Method Detail
-
make
public FieldLocator make(TypeDescription typeDescription)
Creates a field locator for a given type.- Specified by:
make
in interfaceFieldLocator.Factory
- Parameters:
typeDescription
- The type for which to create a field locator.- Returns:
- A suitable field locator.
-
-