Enum Class StackStyle

java.lang.Object
java.lang.Enum<StackStyle>
org.mozilla.javascript.StackStyle
All Implemented Interfaces:
Serializable, Comparable<StackStyle>, Constable

public enum StackStyle extends Enum<StackStyle>
This class distinguishes between the three different supported stack trace formats.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    This stack trace style comes from the old Mozilla code: functionName()@fileName:lineNumber
    This is the same as MOZILLA but uses LF as separator instead of the system dependent line separator.
    This is the default stack trace style in Rhino, which is like Java: at fileName:lineNumber (functionName)
    This stack trace style matches that output from V8, either: at functionName (fileName:lineNumber:columnNumber) or, for anonymous functions: at fileName:lineNumber:columnNumber
  • Method Summary

    Modifier and Type
    Method
    Description
    static StackStyle
    Returns the enum constant of this class with the specified name.
    static StackStyle[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • RHINO

      public static final StackStyle RHINO
      This is the default stack trace style in Rhino, which is like Java: at fileName:lineNumber (functionName)
    • MOZILLA

      public static final StackStyle MOZILLA
      This stack trace style comes from the old Mozilla code: functionName()@fileName:lineNumber
    • MOZILLA_LF

      public static final StackStyle MOZILLA_LF
      This is the same as MOZILLA but uses LF as separator instead of the system dependent line separator.
    • V8

      public static final StackStyle V8
      This stack trace style matches that output from V8, either: at functionName (fileName:lineNumber:columnNumber) or, for anonymous functions: at fileName:lineNumber:columnNumber
  • Method Details

    • values

      public static StackStyle[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StackStyle valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null