|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaLocation
Represents a point of execution within a Java method
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
ImagePointer |
getAddress()
Fetches the absolute address of the code which this location represents. |
int |
getCompilationLevel()
Get the compilation level for this location. |
java.lang.String |
getFilename()
Get the source file name. |
int |
getLineNumber()
Get the line number. |
JavaMethod |
getMethod()
Get the method which contains the point of execution. |
int |
hashCode()
|
java.lang.String |
toString()
|
Method Detail |
---|
ImagePointer getAddress() throws CorruptDataException
Fetches the absolute address of the code which this location represents. This pointer will be contained within one of the segments returned by getBytecodeSections() or getCompiledSections() of the method returned by getMethod().
null may be returned, particularly for methods with no bytecode or compiled sections (e.g. some native methods)
Although an offset into the method may be calculated using this pointer, caution should be exercised in attempting to map this offset to an offset within the original class file. Various transformations may have been applied to the bytecodes by the VM or other agents which may make the offset difficult to interpret.
For native methods, the address may be meaningless.
CorruptDataException
- if the underlying data is in an unexpected stateint getLineNumber() throws DataUnavailable, CorruptDataException
Get the line number.
DataUnavailable
- if the line number data is not available for this location
CorruptDataException
- if the underlying data is in an unexpected statejava.lang.String getFilename() throws DataUnavailable, CorruptDataException
Get the source file name.
DataUnavailable
- if the source file name is unavailable in the core
CorruptDataException
- if the underlying data is in an unexpected stateint 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
For native methods, a non-zero compilation level indicates that some level of JIT compilation has been applied to the native call (e.g. a custom native call stub). To determine if the method is native, use getMethod().getModifiers().
CorruptDataException
- if the underlying data is in an unexpected stateJavaMethod getMethod() throws CorruptDataException
Get the method which contains the point of execution.
CorruptDataException
- if the underlying data is in an unexpected statejava.lang.String toString()
toString
in class java.lang.Object
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |