Class MethodCall.TargetHandler.ForMethodParameter

java.lang.Object
net.bytebuddy.implementation.MethodCall.TargetHandler.ForMethodParameter
All Implemented Interfaces:
InstrumentedType.Prepareable, MethodCall.TargetHandler, MethodCall.TargetHandler.Factory
Enclosing interface:
MethodCall.TargetHandler

@Enhance public static class MethodCall.TargetHandler.ForMethodParameter extends Object implements MethodCall.TargetHandler, MethodCall.TargetHandler.Factory
A target handler that loads the parameter of the given index as the target object.
  • Field Details

    • index

      private final int index
      The index of the instrumented method's parameter that is the target of the method invocation.
  • Constructor Details

    • ForMethodParameter

      protected ForMethodParameter(int index)
      Creates a new target handler for the instrumented method's argument.
      Parameters:
      index - The index of the instrumented method's parameter that is the target of the method invocation.
  • Method Details