Class StackFrameInfo
- java.lang.Object
-
- com.tonic.analysis.execution.debug.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 Summary
Constructors Constructor Description StackFrameInfo(StackFrame frame)Snapshots the signature, program counter and line number of a live frame.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetLineNumber()StringgetMethodSignature()intgetPC()inthashCode()StringtoString()
-
-
-
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
-
-