org.jruby.runtime.backtrace
Enum TraceType.Format

java.lang.Object
  extended by java.lang.Enum<TraceType.Format>
      extended by org.jruby.runtime.backtrace.TraceType.Format
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TraceType.Format>
Enclosing class:
TraceType

public static enum TraceType.Format
extends java.lang.Enum<TraceType.Format>


Enum Constant Summary
JRUBY
          New JRuby formatting
MRI
          Formatting like C Ruby
RUBINIUS
          Rubinius-style formatting
 
Method Summary
abstract  java.lang.String printBacktrace(RubyException exception)
           
static TraceType.Format valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TraceType.Format[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MRI

public static final TraceType.Format MRI
Formatting like C Ruby


JRUBY

public static final TraceType.Format JRUBY
New JRuby formatting


RUBINIUS

public static final TraceType.Format RUBINIUS
Rubinius-style formatting

Method Detail

values

public static TraceType.Format[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TraceType.Format c : TraceType.Format.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TraceType.Format valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

printBacktrace

public abstract java.lang.String printBacktrace(RubyException exception)


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