Class MethodCall.MethodInvoker.ForContextualInvocation

java.lang.Object
net.bytebuddy.implementation.MethodCall.MethodInvoker.ForContextualInvocation
All Implemented Interfaces:
MethodCall.MethodInvoker
Enclosing interface:
MethodCall.MethodInvoker

@Enhance public static class MethodCall.MethodInvoker.ForContextualInvocation extends Object implements MethodCall.MethodInvoker
Applies a contextual invocation of the provided method, i.e. a static invocation for static methods, a special invocation for constructors and private methods and a virtual invocation for any other method.
  • Field Details

    • instrumentedType

      private final TypeDescription instrumentedType
      The instrumented type.
  • Constructor Details

    • ForContextualInvocation

      protected ForContextualInvocation(TypeDescription instrumentedType)
      Creates a new method invoker for a contextual invocation.
      Parameters:
      instrumentedType - The instrumented type.
  • Method Details