Package org.openjdk.jmc.common.util
Class MCStackTrace
java.lang.Object
org.openjdk.jmc.common.util.MCStackTrace
- All Implemented Interfaces:
IMCStackTrace
Base class for stack traces.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openjdk.jmc.common.IMCStackTrace
IMCStackTrace.TruncationState
-
Constructor Summary
ConstructorsConstructorDescriptionMCStackTrace
(List<IMCFrame> frames, IMCStackTrace.TruncationState truncationState) Create a new stack trace instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the frames that this stack trace consist of.Returns the truncation state of the stack trace.int
hashCode()
-
Constructor Details
-
MCStackTrace
Create a new stack trace instance.- Parameters:
frames
- the frames of the stack trace, seeIMCStackTrace.getFrames()
truncationState
- the stack trace truncation state
-
-
Method Details
-
getFrames
Description copied from interface:IMCStackTrace
Return the frames that this stack trace consist of. The frames are ordered from top frame to root frame.- Specified by:
getFrames
in interfaceIMCStackTrace
- Returns:
- the frames
-
getTruncationState
Description copied from interface:IMCStackTrace
Returns 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:
getTruncationState
in interfaceIMCStackTrace
- Returns:
- the truncation state
-
hashCode
public int hashCode() -
equals
-