Class Advice.ArgumentHandler.ForAdvice.ForMethodExit

    • Field Detail

      • instrumentedMethod

        protected final MethodDescription instrumentedMethod
        The instrumented method.
      • enterType

        protected final TypeDefinition enterType
        The enter type or void if no enter type is defined.
      • throwableSize

        protected final StackSize throwableSize
        The stack size of a possibly stored throwable.
    • Constructor Detail

      • ForMethodExit

        protected ForMethodExit​(MethodDescription instrumentedMethod,
                                MethodDescription adviceMethod,
                                TypeDefinition enterType,
                                StackSize throwableSize)
        Creates a new argument handler for an exit advice.
        Parameters:
        instrumentedMethod - The instrumented method.
        adviceMethod - The advice method.
        enterType - The enter type or void if no enter type is defined.
        throwableSize - The stack size of a possibly stored throwable.
    • Method Detail

      • argument

        public int argument​(int offset)
        Description copied from interface: Advice.ArgumentHandler
        Resolves an offset relative to an offset of the instrumented method.
        Specified by:
        argument in interface Advice.ArgumentHandler
        Parameters:
        offset - The offset to resolve.
        Returns:
        The resolved offset.
      • enter

        public int enter()
        Description copied from interface: Advice.ArgumentHandler
        Resolves the offset of the enter value of the enter advice.
        Specified by:
        enter in interface Advice.ArgumentHandler
        Returns:
        The offset of the enter value.
      • returned

        public int returned()
        Description copied from interface: Advice.ArgumentHandler
        Resolves the offset of the returned value of the instrumented method.
        Specified by:
        returned in interface Advice.ArgumentHandler
        Returns:
        The offset of the returned value of the instrumented method.
      • thrown

        public int thrown()
        Description copied from interface: Advice.ArgumentHandler
        Resolves the offset of the thrown exception of the instrumented method.
        Specified by:
        thrown in interface Advice.ArgumentHandler
        Returns:
        The offset of the thrown exception of the instrumented method.