edu.rice.cs.cunit.record.graph
Class StackFrameInfo

java.lang.Object
  extended by edu.rice.cs.cunit.record.graph.StackFrameInfo

public class StackFrameInfo
extends java.lang.Object

Information about a state frame.

Author:
Mathias Ricken

Field Summary
(package private)  long _codeIndex
          Index in the byte code.
(package private)  int _lineNumber
          Line number.
(package private)  java.lang.String _sourcePath
          Path of the source file.
(package private)  java.lang.Long _thisId
          Unique ID of the object that is currently "this"..
(package private)  long _threadId
          Unique ID of the thread this state frame belongs to.
 
Constructor Summary
StackFrameInfo(long threadId, java.lang.Long thisId, java.lang.String sourcePath, int lineNumber, long codeIndex)
          Constructor for StackFrameInfo.
StackFrameInfo(com.sun.jdi.StackFrame sf)
          Constructor for StackFrameInfo.
 
Method Summary
 long getCodeIndex()
          Returns the index in the byte code
 int getLineNumber()
          Returns line number.
 java.lang.String getSourcePath()
          Returns path to source.
 java.lang.Long getThisId()
          Returns ID of this, or null if static or native.
 long getThreadId()
          Returns the thread ID.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_threadId

long _threadId
Unique ID of the thread this state frame belongs to.


_thisId

java.lang.Long _thisId
Unique ID of the object that is currently "this"..


_sourcePath

java.lang.String _sourcePath
Path of the source file.


_lineNumber

int _lineNumber
Line number.


_codeIndex

long _codeIndex
Index in the byte code.

Constructor Detail

StackFrameInfo

public StackFrameInfo(long threadId,
                      java.lang.Long thisId,
                      java.lang.String sourcePath,
                      int lineNumber,
                      long codeIndex)
Constructor for StackFrameInfo.

Parameters:
threadId - ID of the thead
thisId - ID of this
sourcePath - path to source
lineNumber - line number
codeIndex - index in byte code

StackFrameInfo

public StackFrameInfo(com.sun.jdi.StackFrame sf)
Constructor for StackFrameInfo.

Parameters:
sf - state frame
Method Detail

getThreadId

public long getThreadId()
Returns the thread ID.

Returns:
thread ID.

getThisId

public java.lang.Long getThisId()
Returns ID of this, or null if static or native.

Returns:
this ID, or null if static or native

getSourcePath

public java.lang.String getSourcePath()
Returns path to source.

Returns:
path to source

getLineNumber

public int getLineNumber()
Returns line number.

Returns:
line number

getCodeIndex

public long getCodeIndex()
Returns the index in the byte code

Returns:
byte code index

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.