Class AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.BridgeMethodImplementation.Appender

java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.BridgeMethodImplementation.Appender
All Implemented Interfaces:
ByteCodeAppender
Enclosing class:
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.BridgeMethodImplementation

@Enhance protected static class AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.BridgeMethodImplementation.Appender extends Object implements ByteCodeAppender
An appender for implementing a bridge method for a lambda expression.
  • Field Details

  • Constructor Details

    • Appender

      protected Appender(Implementation.SpecialMethodInvocation bridgeTargetInvocation)
      Creates a new appender for invoking a lambda expression's bridge method target.
      Parameters:
      bridgeTargetInvocation - The invocation of the bridge's target method.
  • 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.