Interface Advice.Delegator

    • Method Detail

      • apply

        StackManipulation apply​(TypeDescription instrumentedType,
                                MethodDescription instrumentedMethod)
        Materializes an invocation.
        Parameters:
        instrumentedType - The instrumented type.
        instrumentedMethod - The instrumented method.
        Returns:
        An appropriate stack manipulation which needs to consume all arguments for the advice method and needs to provide a compatible return type.
      • getTypeToken

        MethodDescription.TypeToken getTypeToken()
        Returns the advice method's type token.
        Returns:
        The advice method's type token.
      • assertVisibility

        void assertVisibility​(TypeDescription instrumentedType)
        Asserts the visibility of the delegation target.
        Parameters:
        instrumentedType - The instrumented type.