com.ibm.dtfj.java
Interface JavaLocation


public interface JavaLocation

Represents a point of execution within a Java method


Method Summary
 boolean equals(java.lang.Object obj)
           
 ImagePointer getAddress()
           
 int getCompilationLevel()
          Get the compilation level for this location.
 java.lang.String getFilename()
           
 int getLineNumber()
           
 JavaMethod getMethod()
           
 int hashCode()
           
 java.lang.String toString()
           
 

Method Detail

getAddress

public ImagePointer getAddress()
                        throws CorruptDataException
Returns:
the address in memory of the managed code
Throws:
CorruptDataException

getLineNumber

public int getLineNumber()
                  throws DataUnavailable,
                         CorruptDataException
Returns:
the line number, if available, or throws DataUnavailable if it is not available Line numbers are counted from 1
Throws:
DataUnavailable - if the line number data is not available for this location
CorruptDataException

getFilename

public java.lang.String getFilename()
                             throws DataUnavailable,
                                    CorruptDataException
Returns:
the name of the source file, if available, or throws DataUnavailable if it is not available
Throws:
DataUnavailable - if the source file name is unavailable in the core
CorruptDataException

getCompilationLevel

public int getCompilationLevel()
                        throws CorruptDataException
Get the compilation level for this location. This is an implementation defined number indicating the level at which the current location was compiled. 0 indicates interpreted. Any positive number indicates some level of JIT compilation. Typically, higher numbers indicate more aggressive compilation strategies

Returns:
the compilation level
Throws:
CorruptDataException

getMethod

public JavaMethod getMethod()
                     throws CorruptDataException
Returns:
the method which contains the point of execution
Throws:
CorruptDataException

toString

public java.lang.String toString()
Returns:
A string representing the location as it would be seen in a Java stack trace

equals

public boolean equals(java.lang.Object obj)
Parameters:
obj -
Returns:
True obj refers to the same Java Location in the image

hashCode

public int hashCode()