-
public interface StackFrame
Represents a generic entry in a stack trace, be it originally from JS or Java.
-
-
Method Summary
Modifier and Type Method Description abstract String
getFile()
Get the file this stack frame points to. abstract String
getMethod()
Get the name of the method this frame points to. abstract int
getLine()
Get the line number this frame points to in the file returned by getFile. abstract int
getColumn()
Get the column this frame points to in the file returned by getFile. abstract String
getFileName()
Get just the name of the file this frame points to. abstract boolean
isCollapsed()
Whether this frame is collapsed. abstract JSONObject
toJSON()
Convert the stack frame to a JSON representation. -
-
Method Detail
-
getFile
abstract String getFile()
Get the file this stack frame points to.
JS traces return the full path to the file here, while Java traces only return the file name(the path is not known).
-
getLine
abstract int getLine()
Get the line number this frame points to in the file returned by getFile.
-
getColumn
abstract int getColumn()
Get the column this frame points to in the file returned by getFile.
-
getFileName
abstract String getFileName()
Get just the name of the file this frame points to.
For JS traces this is different from getFile in that it only returns the filename, not the full path. For Java traces there is no difference.
-
isCollapsed
abstract boolean isCollapsed()
Whether this frame is collapsed.
-
toJSON
abstract JSONObject toJSON()
Convert the stack frame to a JSON representation.
-
-
-
-