Class Advice.ArgumentHandler.ForAdvice.ForMethodEnter

    • Constructor Detail

      • ForMethodEnter

        protected ForMethodEnter​(MethodDescription instrumentedMethod,
                                 MethodDescription adviceMethod)
        Creates a new argument handler for an enter advice.
        Parameters:
        instrumentedMethod - The instrumented method.
        adviceMethod - The advice method.
    • 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.