Class ScriptStackElement

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ScriptStackElement
    extends java.lang.Object
    implements java.io.Serializable
    This class represents an element on the script execution stack.
    Since:
    1.7R3
    See Also:
    RhinoException.getScriptStack(), Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ScriptStackElement​(java.lang.String fileName, java.lang.String functionName, int lineNumber)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void renderJavaStyle​(java.lang.StringBuilder sb)
      Render stack element in Java-inspired style: at fileName:lineNumber (functionName)
      void renderMozillaStyle​(java.lang.StringBuilder sb)
      Render stack element in Mozilla/Firefox style: functionName()@fileName:lineNumber
      void renderV8Style​(java.lang.StringBuilder sb)
      Render stack element in V8 style: at functionName (fileName:lineNumber:columnNumber) or: at fileName:lineNumber:columnNumber
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • fileName

        public final java.lang.String fileName
      • functionName

        public final java.lang.String functionName
      • lineNumber

        public final int lineNumber
    • Constructor Detail

      • ScriptStackElement

        public ScriptStackElement​(java.lang.String fileName,
                                  java.lang.String functionName,
                                  int lineNumber)
    • Method Detail

      • toString

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

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

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

        public void renderV8Style​(java.lang.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