public class MCStackTrace extends java.lang.Object implements IMCStackTrace
IMCStackTrace.TruncationState| Modifier and Type | Field and Description |
|---|---|
private java.util.List<IMCFrame> |
frames |
private int |
hashCode |
private IMCStackTrace.TruncationState |
truncationState |
| Constructor and Description |
|---|
MCStackTrace(java.util.List<IMCFrame> frames,
IMCStackTrace.TruncationState truncationState)
Create a new stack trace instance.
|
| Modifier and Type | Method and Description |
|---|---|
private int |
calcMethodHash() |
boolean |
equals(java.lang.Object obj) |
java.util.List<IMCFrame> |
getFrames()
Return the frames that this stack trace consist of.
|
IMCStackTrace.TruncationState |
getTruncationState()
Returns the truncation state of the stack trace.
|
int |
hashCode() |
private final java.util.List<IMCFrame> frames
private final IMCStackTrace.TruncationState truncationState
private final int hashCode
public MCStackTrace(java.util.List<IMCFrame> frames, IMCStackTrace.TruncationState truncationState)
frames - the frames of the stack trace, see IMCStackTrace.getFrames()truncationState - the stack trace truncation statepublic final java.util.List<IMCFrame> getFrames()
IMCStackTracegetFrames in interface IMCStackTracepublic IMCStackTrace.TruncationState getTruncationState()
IMCStackTrace
To easily check if the stack trace is truncated you can use the
IMCStackTrace.TruncationState.isTruncated() method. For example:
mytrace.getTruncationState().isTruncated().
getTruncationState in interface IMCStackTracepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprivate int calcMethodHash()