Package net.bytebuddy.implementation
Class MethodCall.TerminationHandler.FieldSetting.Implicit
java.lang.Object
net.bytebuddy.implementation.MethodCall.TerminationHandler.FieldSetting.Implicit
- All Implemented Interfaces:
MethodCall.TerminationHandler.Factory
- Enclosing class:
MethodCall.TerminationHandler.FieldSetting
@Enhance
protected static class MethodCall.TerminationHandler.FieldSetting.Implicit
extends Object
implements MethodCall.TerminationHandler.Factory
A factory for a field-setting termination handler that uses a matcher to locate the target field on the insturmented type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ElementMatcher
<? super FieldDescription> The matcher being used for locating a field. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Implicit
(ElementMatcher<? super FieldDescription> matcher) Creates a factory for a field-setting termination handler. -
Method Summary
Modifier and TypeMethodDescriptionmake
(TypeDescription instrumentedType) Creates a termination handler for a given instrumented type.
-
Field Details
-
matcher
The matcher being used for locating a field.
-
-
Constructor Details
-
Implicit
Creates a factory for a field-setting termination handler.- Parameters:
matcher
- The matcher being used for locating a field.
-
-
Method Details
-
make
Creates a termination handler for a given instrumented type.- Specified by:
make
in interfaceMethodCall.TerminationHandler.Factory
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- A termination handler to apply for the instrumented type.
-