Enum TraceType.Gather

java.lang.Object
java.lang.Enum<TraceType.Gather>
org.jruby.runtime.backtrace.TraceType.Gather
All Implemented Interfaces:
Serializable, Comparable<TraceType.Gather>, java.lang.constant.Constable
Enclosing class:
TraceType

public static enum TraceType.Gather extends Enum<TraceType.Gather>
  • Enum Constant Details

    • RAW

      public static final TraceType.Gather RAW
      Full raw backtraces with all Java frames included.
    • FULL

      public static final TraceType.Gather FULL
      A backtrace with interpreted frames intact, but don't remove Java frames.
    • INTEGRATED

      public static final TraceType.Gather INTEGRATED
      A normal Ruby-style backtrace, but which includes any non-org.jruby frames
    • NORMAL

      public static final TraceType.Gather NORMAL
      Normal Ruby-style backtrace, showing only Ruby and core class methods.
    • CALLER

      public static final TraceType.Gather CALLER
      Normal Ruby-style backtrace, showing only Ruby and core class methods.
  • Constructor Details

    • Gather

      private Gather()
  • Method Details

    • values

      public static TraceType.Gather[] 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

      public static TraceType.Gather valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getBacktraceData

      public BacktraceData getBacktraceData(ThreadContext context)
      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)