Class CFFrameProcessor

  • All Implemented Interfaces:
    ISnapshotContext

    public class CFFrameProcessor
    extends FrameProcessor
    We want to map the variables from the Java variables to the CF variables. So we have a custom processor for CF that lets us perform this mapping.
    • Method Detail

      • getMethodName

        protected String getMethodName​(StackTraceElement stackTraceElement,
                                       Map<String,​Object> variables,
                                       int frameIndex)
        Description copied from class: FrameCollector
        Get the method name from the stack frame.
        Overrides:
        getMethodName in class FrameCollector
        Parameters:
        stackTraceElement - the stack frame to process
        variables - the variables for the frame
        frameIndex - the frame index
        Returns:
        the name of the method
      • isAppFrame

        protected boolean isAppFrame​(StackTraceElement stackTraceElement)
        Description copied from class: FrameCollector
        An app frame is defined via the settings ISettings.APP_FRAMES_INCLUDES and ISettings.APP_FRAMES_EXCLUDES. This gives a way to tell deep that the frame is part of your app and not part of the framework. This is primarily used as a way to filter frames in the UI.
        Overrides:
        isAppFrame in class FrameCollector
        Parameters:
        stackTraceElement - the stack frame to process
        Returns:
        true if the class name is in the included packages, and not in the excluded packages, else false.
      • selectVariables

        protected Map<String,​Object> selectVariables​(int frameIndex)
        Description copied from class: FrameCollector
        Select from the available captured variables the variables we want to process for this frame. This is mainly here to allow for an easy way for CF to map the variables from their capture Java types to the expected CF types.
        Overrides:
        selectVariables in class FrameCollector
        Parameters:
        frameIndex - the index of the frame we are processing
        Returns:
        the variables available at this frame