Class Implementation.Context.Default.AccessorMethodDelegation

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

@Enhance protected static class Implementation.Context.Default.AccessorMethodDelegation extends Implementation.Context.Default.DelegationRecord
An implementation of a TypeWriter.MethodPool.Record for implementing an accessor method.
  • Field Details

    • accessorMethodInvocation

      private final StackManipulation accessorMethodInvocation
      The stack manipulation that represents the requested special method invocation.
  • Constructor Details

    • AccessorMethodDelegation

      protected AccessorMethodDelegation(TypeDescription instrumentedType, String suffix, MethodAccessorFactory.AccessType accessType, Implementation.SpecialMethodInvocation specialMethodInvocation)
      Creates a delegation to an accessor method.
      Parameters:
      instrumentedType - The instrumented type.
      suffix - The suffix to append to the method.
      accessType - The access type.
      specialMethodInvocation - The actual method's invocation.
    • AccessorMethodDelegation

      private AccessorMethodDelegation(MethodDescription.InDefinedShape methodDescription, Visibility visibility, StackManipulation accessorMethodInvocation)
      Creates a delegation to an accessor method.
      Parameters:
      methodDescription - The accessor method.
      visibility - The method's visibility.
      accessorMethodInvocation - The actual method's invocation.
  • Method Details