Class Advice.StackMapFrameHandler.Default.ForAdvice

    • Method Detail

      • 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.
      • injectIntermediateFrame

        public void injectIntermediateFrame​(org.objectweb.asm.MethodVisitor methodVisitor,
                                            java.util.List<? extends TypeDescription> stack)
        Injects a frame that represents the current state.
        Specified by:
        injectIntermediateFrame in interface Advice.StackMapFrameHandler.ForPostProcessor
        Parameters:
        methodVisitor - The method visitor onto which to apply the stack map frame.
        stack - A list of types that are currently on the stack.