Class FieldProxy.Binder.FieldGetter.Appender

java.lang.Object
net.bytebuddy.implementation.bind.annotation.FieldProxy.Binder.FieldGetter.Appender
All Implemented Interfaces:
ByteCodeAppender
Enclosing class:
FieldProxy.Binder.FieldGetter

@Enhance(includeSyntheticFields=true) protected class FieldProxy.Binder.FieldGetter.Appender extends Object implements ByteCodeAppender
A byte code appender for a getter method.
  • Field Details

    • typeDescription

      private final TypeDescription typeDescription
      The generated accessor type.
  • Constructor Details

    • Appender

      protected Appender(Implementation.Target implementationTarget)
      Creates a new appender for a setter method.
      Parameters:
      implementationTarget - The implementation target of the current instrumentation.
  • Method Details

    • apply

      public ByteCodeAppender.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)
      Applies this byte code appender to a type creation process.
      Specified by:
      apply in interface ByteCodeAppender
      Parameters:
      methodVisitor - The method visitor to which the byte code appender writes its code to.
      implementationContext - The implementation context of the current type creation process.
      instrumentedMethod - The method that is the target of the instrumentation.
      Returns:
      The required size for the applied byte code to run.