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 java.lang.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
Fields Modifier and Type Field Description private ElementMatcher<? super FieldDescription>
matcher
The matcher being used for locating a field.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Implicit(ElementMatcher<? super FieldDescription> matcher)
Creates a factory for a field-setting termination handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodCall.TerminationHandler
make(TypeDescription instrumentedType)
Creates a termination handler for a given instrumented type.
-
-
-
Field Detail
-
matcher
private final ElementMatcher<? super FieldDescription> matcher
The matcher being used for locating a field.
-
-
Constructor Detail
-
Implicit
protected Implicit(ElementMatcher<? super FieldDescription> matcher)
Creates a factory for a field-setting termination handler.- Parameters:
matcher
- The matcher being used for locating a field.
-
-
Method Detail
-
make
public MethodCall.TerminationHandler make(TypeDescription instrumentedType)
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.
-
-