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 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
FieldsModifier and TypeFieldDescriptionprivate final MethodCall.TargetHandler.ForField.LocationThe field's location. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new target handler factory for a field location. -
Method Summary
Modifier and TypeMethodDescriptionmake(Implementation.Target implementationTarget) Creates a target handler for a given implementation target.prepare(InstrumentedType instrumentedType) Prepares a given instrumented type.
-
Field Details
-
location
The field's location.
-
-
Constructor Details
-
Factory
Creates a new target handler factory for a field location.- Parameters:
location- The field's location.
-
-
Method Details
-
prepare
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
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.
-