Class MethodCall.TargetHandler.ForSelfOrStaticInvocation

java.lang.Object
net.bytebuddy.implementation.MethodCall.TargetHandler.ForSelfOrStaticInvocation
All Implemented Interfaces:
MethodCall.TargetHandler
Enclosing interface:
MethodCall.TargetHandler

@Enhance public static class MethodCall.TargetHandler.ForSelfOrStaticInvocation extends Object implements MethodCall.TargetHandler
A target handler that invokes a method either on the instance of the instrumented type or as a static method.
  • Field Details

    • instrumentedType

      private final TypeDescription instrumentedType
      The instrumented type.
  • Constructor Details

    • ForSelfOrStaticInvocation

      protected ForSelfOrStaticInvocation(TypeDescription instrumentedType)
      Creates a new target handler for a static or self-declared invocation.
      Parameters:
      instrumentedType - The instrumented type.
  • Method Details