Enum Advice.StackMapFrameHandler.NoOp

    • Constructor Detail

      • NoOp

        private NoOp()
    • Method Detail

      • values

        public static Advice.StackMapFrameHandler.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.StackMapFrameHandler.NoOp c : Advice.StackMapFrameHandler.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.StackMapFrameHandler.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
      • translateFrame

        public void translateFrame​(org.objectweb.asm.MethodVisitor methodVisitor,
                                   int type,
                                   int localVariableLength,
                                   java.lang.Object[] localVariable,
                                   int stackSize,
                                   java.lang.Object[] stack)
        Translates a frame.
        Specified by:
        translateFrame in interface Advice.StackMapFrameHandler
        Parameters:
        methodVisitor - The method visitor to write the frame to.
        type - The frame's type.
        localVariableLength - The local variable length.
        localVariable - An array containing the types of the current local variables.
        stackSize - The size of the operand stack.
        stack - An array containing the types of the current operand stack.
      • injectReturnFrame

        public void injectReturnFrame​(org.objectweb.asm.MethodVisitor methodVisitor)
        Injects a frame indicating the beginning of a return value handler for the currently handled method.
        Specified by:
        injectReturnFrame in interface Advice.StackMapFrameHandler
        Parameters:
        methodVisitor - The method visitor onto which to apply the stack map frame.
      • injectExceptionFrame

        public void injectExceptionFrame​(org.objectweb.asm.MethodVisitor methodVisitor)
        Injects a frame indicating the beginning of an exception handler for the currently handled method.
        Specified by:
        injectExceptionFrame in interface Advice.StackMapFrameHandler
        Parameters:
        methodVisitor - The method visitor onto which to apply the stack map frame.
      • injectCompletionFrame

        public void injectCompletionFrame​(org.objectweb.asm.MethodVisitor methodVisitor)
        Injects a frame indicating the completion of the currently handled method, i.e. all yielded types were added.
        Specified by:
        injectCompletionFrame in interface Advice.StackMapFrameHandler
        Parameters:
        methodVisitor - The method visitor onto which to apply the stack map frame.
      • injectStartFrame

        public void injectStartFrame​(org.objectweb.asm.MethodVisitor methodVisitor)
        Injects a frame before executing the instrumented method.
        Specified by:
        injectStartFrame in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
        Parameters:
        methodVisitor - The method visitor to write any frames to.
      • injectPostCompletionFrame

        public void injectPostCompletionFrame​(org.objectweb.asm.MethodVisitor methodVisitor)
        Injects a frame indicating the completion of the currently handled method, i.e. all yielded types were added.
        Specified by:
        injectPostCompletionFrame in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
        Parameters:
        methodVisitor - The method visitor onto which to apply the stack map frame.