Package org.openjdk.jmc.common.util
Class MCStackTrace
- java.lang.Object
- 
- org.openjdk.jmc.common.util.MCStackTrace
 
- 
- All Implemented Interfaces:
- IMCStackTrace
 
 public class MCStackTrace extends Object implements IMCStackTrace Base class for stack traces.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.openjdk.jmc.common.IMCStackTraceIMCStackTrace.TruncationState
 
- 
 - 
Constructor SummaryConstructors Constructor Description MCStackTrace(List<IMCFrame> frames, IMCStackTrace.TruncationState truncationState)Create a new stack trace instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<IMCFrame>getFrames()Return the frames that this stack trace consist of.IMCStackTrace.TruncationStategetTruncationState()Returns the truncation state of the stack trace.inthashCode()
 
- 
- 
- 
Constructor Detail- 
MCStackTracepublic MCStackTrace(List<IMCFrame> frames, IMCStackTrace.TruncationState truncationState) Create a new stack trace instance.- Parameters:
- frames- the frames of the stack trace, see- IMCStackTrace.getFrames()
- truncationState- the stack trace truncation state
 
 
- 
 - 
Method Detail- 
getFramespublic final List<IMCFrame> getFrames() Description copied from interface:IMCStackTraceReturn the frames that this stack trace consist of. The frames are ordered from top frame to root frame.- Specified by:
- getFramesin interface- IMCStackTrace
- Returns:
- the frames
 
 - 
getTruncationStatepublic IMCStackTrace.TruncationState getTruncationState() Description copied from interface:IMCStackTraceReturns the truncation state of the stack trace.To easily check if the stack trace is truncated you can use the IMCStackTrace.TruncationState.isTruncated()method. For example:mytrace.getTruncationState().isTruncated().- Specified by:
- getTruncationStatein interface- IMCStackTrace
- Returns:
- the truncation state
 
 
- 
 
-