public class StacktraceModel.Branch extends Object
StacktraceModel.Fork
and ends
with a fork.
When first constructed, the branch only has the first frame calculated. On demand, a list of non-branching "tail" frames and a fork after the branch can be calculated and retrieved.
Note that all frames within a branch do not necessarily have the same number of items. Stack traces that are similar in all aspects except for their sizes (e.g. [a, b] and [a, b, c]) can share a branch. Forks are only created if there are two or more different frames on the same level (e.g. [a, b, c] and [a, b, d]).
Modifier and Type | Method and Description |
---|---|
StacktraceModel.Fork |
getEndFork() |
StacktraceFrame |
getFirstFrame() |
int |
getItemOffsetInFork() |
StacktraceFrame |
getLastFrame() |
StacktraceModel.Fork |
getParentFork() |
StacktraceFrame[] |
getTailFrames() |
boolean |
hasTail() |
StacktraceModel.Branch |
selectSibling(Integer siblingOffset)
Deprecated.
Will eventually be moved to UI code
|
public int getItemOffsetInFork()
public StacktraceModel.Fork getParentFork()
public boolean hasTail()
@Deprecated public StacktraceModel.Branch selectSibling(Integer siblingOffset)
siblingOffset
- Use 1 or -1 to select the next or previous sibling branch. If 0, then this
branch is selected. If null, clear branch selection.public StacktraceFrame getFirstFrame()
public StacktraceFrame getLastFrame()
public StacktraceFrame[] getTailFrames()
public StacktraceModel.Fork getEndFork()
Copyright © 2020. All rights reserved.