Package org.openjdk.jmc.common
Enum Class IMCStackTrace.TruncationState
- All Implemented Interfaces:
Serializable
,Comparable<IMCStackTrace.TruncationState>
,Constable
- Enclosing interface:
- IMCStackTrace
Information about the truncation state of the stack trace.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe stack trace has not been truncated.The stack trace has been truncated.Is is unknown if the stack trace has been truncated or not. -
Method Summary
Modifier and TypeMethodDescriptionfromBoolean
(Boolean trunc) Get the correct truncation state enum value based on a Boolean value.boolean
For all intents and purposes, we assume thatUNKNOWN
means not truncated.Returns the enum constant of this class with the specified name.static IMCStackTrace.TruncationState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRUNCATED
The stack trace has been truncated. -
NOT_TRUNCATED
The stack trace has not been truncated. -
UNKNOWN
Is is unknown if the stack trace has been truncated or not.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromBoolean
Get the correct truncation state enum value based on a Boolean value.- Parameters:
trunc
-true
fortruncated stack traces
,false
fornon-truncated stack traces
, andnull
if the state isunknown
- Returns:
- a truncation state
-
isTruncated
public boolean isTruncated()For all intents and purposes, we assume thatUNKNOWN
means not truncated.- Returns:
true
if the stack trace has been truncated,false
otherwise
-