Enum Advice.StackMapFrameHandler.Default.TranslationMode

    • Method Detail

      • values

        public static Advice.StackMapFrameHandler.Default.TranslationMode[] 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.StackMapFrameHandler.Default.TranslationMode c : Advice.StackMapFrameHandler.Default.TranslationMode.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.StackMapFrameHandler.Default.TranslationMode valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • copy

        protected abstract int copy​(TypeDescription instrumentedType,
                                    MethodDescription instrumentedMethod,
                                    MethodDescription methodDescription,
                                    Object[] localVariable,
                                    Object[] translated)
        Copies the fixed parameters of the instrumented method onto the operand stack.
        Parameters:
        instrumentedType - The instrumented type.
        instrumentedMethod - The instrumented method.
        methodDescription - The method for which a frame is created.
        localVariable - The original local variable array.
        translated - The array containing the translated frames.
        Returns:
        The amount of frames added to the translated frame array.
      • isPossibleThisFrameValue

        protected abstract boolean isPossibleThisFrameValue​(TypeDescription instrumentedType,
                                                            MethodDescription instrumentedMethod,
                                                            Object frame)
        Checks if a variable value in a stack map frame is a legal value for describing a this reference.
        Parameters:
        instrumentedType - The instrumented type.
        instrumentedMethod - The instrumented method.
        frame - The frame value representing the this reference.
        Returns:
        true if the value is a legal representation of the this reference.