Interface Advice.ArgumentHandler.ForInstrumentedMethod

    • Method Detail

      • variable

        int variable​(int index)
        Resolves a local variable index.
        Parameters:
        index - The index to resolve.
        Returns:
        The resolved local variable index.
      • prepare

        int prepare​(org.objectweb.asm.MethodVisitor methodVisitor)
        Prepares this argument handler for future offset access.
        Parameters:
        methodVisitor - The method visitor to which to write any potential byte code.
        Returns:
        The minimum stack size that is required to apply this manipulation.
      • bindEnter

        Advice.ArgumentHandler.ForAdvice bindEnter​(MethodDescription adviceMethod)
        Binds an advice method as enter advice for this handler.
        Parameters:
        adviceMethod - The resolved enter advice handler.
        Returns:
        The resolved argument handler for enter advice.
      • bindExit

        Advice.ArgumentHandler.ForAdvice bindExit​(MethodDescription adviceMethod,
                                                  boolean skipThrowable)
        Binds an advice method as exit advice for this handler.
        Parameters:
        adviceMethod - The resolved exit advice handler.
        skipThrowable - true if no throwable is stored.
        Returns:
        The resolved argument handler for enter advice.
      • isCopyingArguments

        boolean isCopyingArguments()
        Returns true if the original arguments are copied before invoking the instrumented method.
        Returns:
        true if the original arguments are copied before invoking the instrumented method.
      • getNamedTypes

        java.util.List<TypeDescription> getNamedTypes()
        Returns a list of the named types in their declared order.
        Returns:
        A list of the named types in their declared order.