public static class StackTraceHelper.StackFrameImpl extends java.lang.Object implements StackFrame
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Get the column this frame points to in the file returned by
getFile(). |
java.lang.String |
getFile()
Get the file this stack frame points to.
|
java.lang.String |
getFileName()
Get just the name of the file this frame points to.
|
int |
getLine()
Get the line number this frame points to in the file returned by
getFile(). |
java.lang.String |
getMethod()
Get the name of the method this frame points to.
|
org.json.JSONObject |
toJSON()
Convert the stack frame to a JSON representation.
|
public java.lang.String getFile()
JS traces return the full path to the file here, while Java traces only return the file name (the path is not known).
getFile in interface StackFramepublic java.lang.String getMethod()
getMethod in interface StackFramepublic int getLine()
getFile().getLine in interface StackFramepublic int getColumn()
getFile().getColumn in interface StackFramepublic java.lang.String getFileName()
For JS traces this is different from getFile() in that it only returns the file
name, not the full path. For Java traces there is no difference.
getFileName in interface StackFramepublic org.json.JSONObject toJSON()
toJSON in interface StackFrame