Class MethodCall.MethodInvoker.ForContextualInvocation

  • All Implemented Interfaces:
    MethodCall.MethodInvoker
    Enclosing interface:
    MethodCall.MethodInvoker

    @Enhance
    public static class MethodCall.MethodInvoker.ForContextualInvocation
    extends java.lang.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 Detail

      • instrumentedType

        private final TypeDescription instrumentedType
        The instrumented type.
    • Constructor Detail

      • ForContextualInvocation

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