Package org.mozilla.javascript
Class ScriptStackElement
- java.lang.Object
-
- org.mozilla.javascript.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
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
fileName
java.lang.String
functionName
int
lineNumber
-
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()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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
-
-