Class Advice.MethodSizeHandler.Default.ForAdvice

    • Constructor Detail

      • ForAdvice

        protected ForAdvice​(MethodDescription.InDefinedShape adviceMethod,
                            TypeList enterTypes,
                            TypeList exitTypes)
        Creates a new method size handler for an advice method.
        Parameters:
        adviceMethod - The advice method.
        enterTypes - A list of virtual method arguments that are available before the instrumented method is executed.
        exitTypes - A list of virtual method arguments that are available after the instrumented method has completed.
    • Method Detail

      • requireLocalVariableLength

        public void requireLocalVariableLength​(int localVariableLength)
        Description copied from interface: Advice.MethodSizeHandler
        Requires a minimum length of the local variable array.
        Specified by:
        requireLocalVariableLength in interface Advice.MethodSizeHandler
        Parameters:
        localVariableLength - The minimal required length of the local variable array.
      • recordMaxima

        public void recordMaxima​(int stackSize,
                                 int localVariableLength)
        Description copied from interface: Advice.MethodSizeHandler.ForAdvice
        Records the maximum values for stack size and local variable array which are required by the advice method for its individual execution without translation.
        Specified by:
        recordMaxima in interface Advice.MethodSizeHandler.ForAdvice
        Parameters:
        stackSize - The minimum required stack size.
        localVariableLength - The minimum required length of the local variable array.