public class FrameSeparator
extends java.lang.Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
FrameSeparator.FrameCategorization |
Modifier and Type | Field and Description |
---|---|
private FrameSeparator.FrameCategorization |
categorization |
private boolean |
distinguishFramesByOptimization |
Constructor and Description |
---|
FrameSeparator(FrameSeparator.FrameCategorization categorization,
boolean distinguishFramesByOptimization) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
compareDetails(IMCFrame frameA,
IMCFrame frameB)
Check if two frames are equal according to this frame separator.
|
boolean |
equals(java.lang.Object obj) |
FrameSeparator.FrameCategorization |
getCategorization() |
(package private) java.lang.Object |
getCategory(IMCFrame frame)
Get an object identifying a frame on the most significant level used by this frame separator.
|
int |
hashCode() |
boolean |
isDistinguishFramesByOptimization() |
boolean |
isSeparate(IMCFrame frameA,
IMCFrame frameB)
Check if two frames are different according to this frame separator.
|
private final boolean distinguishFramesByOptimization
private final FrameSeparator.FrameCategorization categorization
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.public FrameSeparator.FrameCategorization getCategorization()
public boolean isDistinguishFramesByOptimization()
public boolean isSeparate(IMCFrame frameA, IMCFrame frameB)
java.lang.Object getCategory(IMCFrame frame)
boolean compareDetails(IMCFrame frameA, IMCFrame frameB)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object