Class Implementation.Context.Default.FieldSetterDelegation

All Implemented Interfaces:
TypeWriter.MethodPool.Record, ByteCodeAppender
Enclosing class:
Implementation.Context.Default

@Enhance protected static class Implementation.Context.Default.FieldSetterDelegation extends Implementation.Context.Default.DelegationRecord
An implementation for a field setter.
  • Field Details

    • fieldDescription

      private final FieldDescription fieldDescription
      The field to write to.
  • Constructor Details

    • FieldSetterDelegation

      protected FieldSetterDelegation(TypeDescription instrumentedType, String suffix, MethodAccessorFactory.AccessType accessType, FieldDescription fieldDescription)
      Creates a new field setter implementation.
      Parameters:
      instrumentedType - The instrumented type.
      suffix - The suffix to use for the setter method.
      accessType - The method's access type.
      fieldDescription - The field to write to.
    • FieldSetterDelegation

      private FieldSetterDelegation(MethodDescription.InDefinedShape methodDescription, Visibility visibility, FieldDescription fieldDescription)
      Creates a new field setter.
      Parameters:
      methodDescription - The field accessor method.
      visibility - The delegation method's visibility.
      fieldDescription - The field to write to.
  • Method Details