Interface MethodCall.TargetHandler

    • Method Detail

      • resolve

        StackManipulation resolve​(Implementation.Target implementationTarget,
                                  MethodDescription invokedMethod,
                                  MethodDescription instrumentedMethod,
                                  TypeDescription instrumentedType,
                                  Assigner assigner,
                                  Assigner.Typing typing)
        Creates a stack manipulation that represents the method's invocation.
        Parameters:
        implementationTarget - The implementation target.
        invokedMethod - The method to be invoked.
        instrumentedMethod - The instrumented method.
        instrumentedType - The instrumented type. @return A stack manipulation that invokes the method.
        assigner - The assigner to use.
        typing - The typing to apply.
        Returns:
        A stack manipulation that loads the method target onto the operand stack.
      • resolve

        TypeDescription resolve​(TypeDescription instrumentedType,
                                MethodDescription instrumentedMethod)
        Resolves the method call's target.
        Parameters:
        instrumentedType - The instrumented type.
        instrumentedMethod - The instrumented method.
        Returns:
        method call's target