Class StacktraceModel.Fork

  • Enclosing class:
    StacktraceModel

    public class StacktraceModel.Fork
    extends java.lang.Object
    A fork is a collection of branches that share a common parent branch. The fork also keeps track of which one of its branches is currently selected.

    This class might eventually be merged with the StacktraceModel.Branch class.

    • Field Detail

      • itemOffset

        private final int itemOffset
      • itemsInFork

        private final int itemsInFork
      • selectedBranchIndex

        private java.lang.Integer selectedBranchIndex
    • Constructor Detail

      • Fork

        private Fork​(java.lang.Iterable<? extends IItem> items)
      • Fork

        private Fork​(java.lang.Iterable<? extends IItem> items,
                     int itemOffset,
                     StacktraceModel.Branch parentBranch)
        Create a fork by grouping items by distinct head frames using the frame separator. If a parent branch is specified, then look for head frames after the parent branch.
    • Method Detail

      • getItemOffset

        public int getItemOffset()
      • getItemsInFork

        public int getItemsInFork()
      • getBranchCount

        public int getBranchCount()
      • getSelectedBranch

        @Deprecated
        public StacktraceModel.Branch getSelectedBranch()
        Deprecated.
        Will eventually be moved to UI code
      • getFirstFrames

        public StacktraceFrame[] getFirstFrames()
        Returns:
        the first frame of each child branch to this fork
      • selectBranch

        @Deprecated
        public void selectBranch​(java.lang.Integer branchIndex)
        Deprecated.
        Will eventually be moved to UI code
        Select a child branch by its index.
        Parameters:
        branchIndex - Index of branch to select. If null, then selection will be cleared.