Class Advice.ArgumentHandler.ForAdvice.Default.ForMethodExit

    • Field Detail

      • enterType

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

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

      • ForMethodExit

        protected ForMethodExit​(MethodDescription instrumentedMethod,
                                MethodDescription adviceMethod,
                                TypeDefinition exitType,
                                java.util.TreeMap<java.lang.String,​TypeDefinition> namedTypes,
                                TypeDefinition enterType,
                                StackSize throwableSize)
        Creates a new argument handler for an exit advice method.
        Parameters:
        instrumentedMethod - The instrumented method.
        adviceMethod - The advice method.
        exitType - The exit type or void if no exit type is defined.
        namedTypes - A mapping of all available local variables by their name to their type.
        enterType - The enter type or void if no enter type is defined.
        throwableSize - The stack size of a possibly stored throwable.
    • Method Detail

      • returned

        public int returned()
        Resolves the offset of the returned value of the instrumented method.
        Returns:
        The offset of the returned value of the instrumented method.
      • thrown

        public int thrown()
        Resolves the offset of the thrown exception of the instrumented method.
        Returns:
        The offset of the thrown exception of the instrumented method.
      • mapped

        public int mapped​(int offset)
        Resolves an offset of the advice method.
        Parameters:
        offset - The offset to resolve.
        Returns:
        The resolved offset.