org.jruby.runtime.backtrace
Class TraceType

java.lang.Object
  extended by org.jruby.runtime.backtrace.TraceType

public class TraceType
extends java.lang.Object


Nested Class Summary
static class TraceType.Format
           
static class TraceType.Gather
           
 
Constructor Summary
TraceType(TraceType.Gather gather, TraceType.Format format)
           
 
Method Summary
static IRubyObject generateMRIBacktrace(Ruby runtime, RubyStackTraceElement[] trace)
           
 BacktraceData getBacktrace(ThreadContext context, boolean nativeException)
           
protected static BacktraceData getBacktrace(ThreadContext context, TraceType.Gather gather, boolean nativeException, boolean full, boolean maskNative)
           
 java.lang.String printBacktrace(RubyException exception)
           
protected static java.lang.String printBacktraceJRuby(RubyException exception)
           
protected static java.lang.String printBacktraceJRuby2(RubyException exception)
           
protected static java.lang.String printBacktraceMRI(RubyException exception)
           
protected static java.lang.String printBacktraceRubinius(RubyException exception)
           
static TraceType traceTypeFor(java.lang.String style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceType

public TraceType(TraceType.Gather gather,
                 TraceType.Format format)
Method Detail

getBacktrace

public BacktraceData getBacktrace(ThreadContext context,
                                  boolean nativeException)

printBacktrace

public java.lang.String printBacktrace(RubyException exception)

traceTypeFor

public static TraceType traceTypeFor(java.lang.String style)

printBacktraceMRI

protected static java.lang.String printBacktraceMRI(RubyException exception)

printBacktraceRubinius

protected static java.lang.String printBacktraceRubinius(RubyException exception)

printBacktraceJRuby

protected static java.lang.String printBacktraceJRuby(RubyException exception)

printBacktraceJRuby2

protected static java.lang.String printBacktraceJRuby2(RubyException exception)

generateMRIBacktrace

public static IRubyObject generateMRIBacktrace(Ruby runtime,
                                               RubyStackTraceElement[] trace)

getBacktrace

protected static BacktraceData getBacktrace(ThreadContext context,
                                            TraceType.Gather gather,
                                            boolean nativeException,
                                            boolean full,
                                            boolean maskNative)


Copyright © 2002-2009 JRuby Team. All Rights Reserved.