Class ScriptStackElement

java.lang.Object
org.mozilla.javascript.ScriptStackElement
All Implemented Interfaces:
Serializable

public final class ScriptStackElement extends Object implements Serializable
This class represents an element on the script execution stack.
Since:
1.7R3
Author:
Hannes Wallnoefer
See Also:
  • Field Details

    • fileName

      public final String fileName
    • functionName

      public final String functionName
    • lineNumber

      public final int lineNumber
  • Constructor Details

    • ScriptStackElement

      public ScriptStackElement(String fileName, String functionName, int lineNumber)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • renderJavaStyle

      public void renderJavaStyle(StringBuilder sb)
      Render stack element in Java-inspired style: at fileName:lineNumber (functionName)
      Parameters:
      sb - the StringBuilder to append to
    • renderMozillaStyle

      public void renderMozillaStyle(StringBuilder sb)
      Render stack element in Mozilla/Firefox style: functionName()@fileName:lineNumber
      Parameters:
      sb - the StringBuilder to append to
    • renderV8Style

      public void renderV8Style(StringBuilder sb)
      Render stack element in V8 style: at functionName (fileName:lineNumber:columnNumber) or: at fileName:lineNumber:columnNumber
      Parameters:
      sb - the StringBuilder to append to