Package net.bytebuddy.implementation
Class MethodCall.TerminationHandler.FieldSetting.Explicit
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.TerminationHandler.FieldSetting.Explicit
-
- All Implemented Interfaces:
MethodCall.TerminationHandler.Factory
- Enclosing class:
- MethodCall.TerminationHandler.FieldSetting
@Enhance protected static class MethodCall.TerminationHandler.FieldSetting.Explicit extends java.lang.Object implements MethodCall.TerminationHandler.Factory
A factory for a field-setting termination handler that locates a given field.
-
-
Field Summary
Fields Modifier and Type Field Description private FieldDescription
fieldDescription
The matcher being used for locating a field.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Explicit(FieldDescription fieldDescription)
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
-
fieldDescription
private final FieldDescription fieldDescription
The matcher being used for locating a field.
-
-
Constructor Detail
-
Explicit
protected Explicit(FieldDescription fieldDescription)
Creates a factory for a field-setting termination handler.- Parameters:
fieldDescription
- The field to set.
-
-
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.
-
-