Class Implementation.Context.Default.FieldGetterDelegation

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

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

    • fieldDescription

      private final FieldDescription fieldDescription
      The field to read from.
  • Constructor Details

    • FieldGetterDelegation

      protected FieldGetterDelegation(TypeDescription instrumentedType, String suffix, MethodAccessorFactory.AccessType accessType, FieldDescription fieldDescription)
      Creates a new field getter 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.
    • FieldGetterDelegation

      private FieldGetterDelegation(MethodDescription.InDefinedShape methodDescription, Visibility visibility, FieldDescription fieldDescription)
      Creates a new field getter implementation.
      Parameters:
      methodDescription - The delegation method.
      visibility - The delegation method's visibility.
      fieldDescription - The field to read.
  • Method Details