Class StackFrameInfo


  • public final class StackFrameInfo
    extends Object
    Immutable snapshot of one execution frame's position, used to build stack traces after the frame itself is gone.
    • Constructor Detail

      • StackFrameInfo

        public StackFrameInfo​(StackFrame frame)
        Snapshots the signature, program counter and line number of a live frame.
        Parameters:
        frame - the frame to capture
        Throws:
        IllegalArgumentException - if the frame is null
    • Method Detail

      • getMethodSignature

        public String getMethodSignature()
        Returns:
        the method signature
      • getPC

        public int getPC()
        Returns:
        the program counter captured from the frame
      • getLineNumber

        public int getLineNumber()
        Returns:
        the line number
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object