Package 

Class StackTraceHelper.StackFrameImpl

  • All Implemented Interfaces:
    com.facebook.react.devsupport.interfaces.StackFrame

    
    public class StackTraceHelper.StackFrameImpl
     implements StackFrame
                        

    Represents a generic entry in a stack trace, be it originally from JS or Java.

    • Method Summary

      Modifier and Type Method Description
      String getFile() Get the file this stack frame points to.
      String getMethod() Get the name of the method this frame points to.
      int getLine() Get the line number this frame points to in the file returned by getFile.
      int getColumn() Get the column this frame points to in the file returned by getFile.
      String getFileName() Get just the name of the file this frame points to.
      boolean isCollapsed() Whether this frame is collapsed.
      JSONObject toJSON() Convert the stack frame to a JSON representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getFile

         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 filename (the path is not known).

      • getMethod

         String getMethod()

        Get the name of the method this frame points to.

      • getLine

         int getLine()

        Get the line number this frame points to in the file returned by getFile.

      • getColumn

         int getColumn()

        Get the column this frame points to in the file returned by getFile.

      • getFileName

         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

         boolean isCollapsed()

        Whether this frame is collapsed.