Package org.jruby.runtime.backtrace
Enum TraceType.Gather
- All Implemented Interfaces:
Serializable,Comparable<TraceType.Gather>,java.lang.constant.Constable
- Enclosing class:
- TraceType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNormal Ruby-style backtrace, showing only Ruby and core class methods.A backtrace with interpreted frames intact, but don't remove Java frames.A normal Ruby-style backtrace, but which includes any non-org.jruby framesNormal Ruby-style backtrace, showing only Ruby and core class methods.Full raw backtraces with all Java frames included. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBacktraceData(ThreadContext context) Gather current-stack backtrace data for a normal Ruby trace.abstract BacktraceDatagetBacktraceData(ThreadContext context, Stream<com.headius.backport9.stack.StackWalker.StackFrame> javaTrace) getIntegratedBacktraceData(ThreadContext context, StackTraceElement[] javaTrace) Gather backtrace data for an integrated trace if the current gather type is "NORMAL", otherwise use the current gather type.static TraceType.GatherReturns the enum constant of this type with the specified name.static TraceType.Gather[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RAW
Full raw backtraces with all Java frames included. -
FULL
A backtrace with interpreted frames intact, but don't remove Java frames. -
INTEGRATED
A normal Ruby-style backtrace, but which includes any non-org.jruby frames -
NORMAL
Normal Ruby-style backtrace, showing only Ruby and core class methods. -
CALLER
Normal Ruby-style backtrace, showing only Ruby and core class methods.
-
-
Constructor Details
-
Gather
private Gather()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getBacktraceData
Gather current-stack backtrace data for a normal Ruby trace.- Parameters:
context-- Returns:
-
getIntegratedBacktraceData
public BacktraceData getIntegratedBacktraceData(ThreadContext context, StackTraceElement[] javaTrace) Gather backtrace data for an integrated trace if the current gather type is "NORMAL", otherwise use the current gather type.- Parameters:
context-javaTrace-- Returns:
-
getBacktraceData
public abstract BacktraceData getBacktraceData(ThreadContext context, Stream<com.headius.backport9.stack.StackWalker.StackFrame> javaTrace)
-