public static enum TraceType.Gather extends Enum<TraceType.Gather>
Enum Constant and Description |
---|
CALLER
Normal Ruby-style backtrace, showing only Ruby and core class methods.
|
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.
|
RAW
Full raw backtraces with all Java frames included.
|
Modifier and Type | Method and Description |
---|---|
BacktraceData |
getBacktraceData(ThreadContext context,
boolean nativeException)
Gather backtrace data for a normal Ruby trace.
|
abstract BacktraceData |
getBacktraceData(ThreadContext context,
StackTraceElement[] javaTrace,
boolean nativeException) |
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.
|
static TraceType.Gather |
valueOf(String name)
Returns 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.
|
public static final TraceType.Gather RAW
public static final TraceType.Gather FULL
public static final TraceType.Gather INTEGRATED
public static final TraceType.Gather NORMAL
public static final TraceType.Gather CALLER
public static TraceType.Gather[] values()
for (TraceType.Gather c : TraceType.Gather.values()) System.out.println(c);
public static TraceType.Gather valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic BacktraceData getBacktraceData(ThreadContext context, boolean nativeException)
context
- nativeException
- public BacktraceData getIntegratedBacktraceData(ThreadContext context, StackTraceElement[] javaTrace)
context
- javaTrace
- public abstract BacktraceData getBacktraceData(ThreadContext context, StackTraceElement[] javaTrace, boolean nativeException)
Copyright © 2001–2016 JRuby. All rights reserved.