Class FrameSeparator

  • public class FrameSeparator
    extends Object
    Helper class used to compare stacktrace frames when grouping them into different branches in the stacktrace model.

    There are two dimensions to consider when comparing frames. The first is the level of detail in a frame, where package is the most general and byte code index is the most specific. The second is if different optimization levels (see IMCFrame.Type) should be treated as equal or not.

    • Constructor Detail

      • FrameSeparator

        public FrameSeparator​(FrameSeparator.FrameCategorization categorization,
                              boolean distinguishFramesByOptimization)
        categorization - How much detail to look at when comparing frames.
        distinguishFramesByOptimization - True to treat different compiled versions of the code as different.
    • Method Detail

      • isDistinguishFramesByOptimization

        public boolean isDistinguishFramesByOptimization()
      • isSeparate

        public boolean isSeparate​(IMCFrame frameA,
                                  IMCFrame frameB)
        Check if two frames are different according to this frame separator.
      • hashCode

        public int hashCode()
        hashCode in class Object