Package net.bytebuddy.implementation
Class MethodCall.TargetHandler.ForField.Factory
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.TargetHandler.ForField.Factory
-
- All Implemented Interfaces:
InstrumentedType.Prepareable,MethodCall.TargetHandler.Factory
- Enclosing class:
- MethodCall.TargetHandler.ForField
@Enhance protected static class MethodCall.TargetHandler.ForField.Factory extends java.lang.Object implements MethodCall.TargetHandler.Factory
A factory for a field access.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp
-
-
Field Summary
Fields Modifier and Type Field Description private MethodCall.TargetHandler.ForField.LocationlocationThe field's location.
-
Constructor Summary
Constructors Modifier Constructor Description protectedFactory(MethodCall.TargetHandler.ForField.Location location)Creates a new target handler factory for a field location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodCall.TargetHandlermake(Implementation.Target implementationTarget)Creates a target handler for a given implementation target.InstrumentedTypeprepare(InstrumentedType instrumentedType)Prepares a given instrumented type.
-
-
-
Field Detail
-
location
private final MethodCall.TargetHandler.ForField.Location location
The field's location.
-
-
Constructor Detail
-
Factory
protected Factory(MethodCall.TargetHandler.ForField.Location location)
Creates a new target handler factory for a field location.- Parameters:
location- The field's location.
-
-
Method Detail
-
prepare
public InstrumentedType prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.- Specified by:
preparein interfaceInstrumentedType.Prepareable- Parameters:
instrumentedType- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
make
public MethodCall.TargetHandler make(Implementation.Target implementationTarget)
Creates a target handler for a given implementation target.- Specified by:
makein interfaceMethodCall.TargetHandler.Factory- Parameters:
implementationTarget- The implementation target to use.- Returns:
- The target handler to use.
-
-