Enum Advice.MethodSizeHandler.NoOp

    • Method Detail

      • values

        public static Advice.MethodSizeHandler.NoOp[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Advice.MethodSizeHandler.NoOp c : Advice.MethodSizeHandler.NoOp.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Advice.MethodSizeHandler.NoOp valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • compoundLocalVariableLength

        public int compoundLocalVariableLength​(int localVariableLength)
        Description copied from interface: Advice.MethodSizeHandler.ForInstrumentedMethod
        Computes a compound local variable array length for the advice and the translated instrumented method.
        Specified by:
        compoundLocalVariableLength in interface Advice.MethodSizeHandler.ForInstrumentedMethod
        Parameters:
        localVariableLength - The required local variable array length of the instrumented method before translation.
        Returns:
        The local variable length required by the instrumented method and its advice methods.
      • 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.