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.
|
boolean |
isCollapsed()
Whether this frame is collapsed.
|
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 StackFrame
public java.lang.String getMethod()
getMethod
in interface StackFrame
public int getLine()
getFile()
.getLine
in interface StackFrame
public int getColumn()
getFile()
.getColumn
in interface StackFrame
public 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 StackFrame
public boolean isCollapsed()
StackFrame
isCollapsed
in interface StackFrame
public org.json.JSONObject toJSON()
toJSON
in interface StackFrame