public interface JavaLocation
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the argument to the receiver, and answers true
if they represent the same object using a class
specific comparison.
|
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()
Answers an integer hash code for the receiver.
|
java.lang.String |
toString()
Answers a string containing a concise, human-readable
description of the receiver.
|
ImagePointer getAddress() throws CorruptDataException
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
int getLineNumber() throws DataUnavailable, CorruptDataException
DataUnavailable
- if the line number data is not available for this locationCorruptDataException
java.lang.String getFilename() throws DataUnavailable, CorruptDataException
DataUnavailable
- if the source file name is unavailable in the coreCorruptDataException
int getCompilationLevel() throws CorruptDataException
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
JavaMethod getMethod() throws CorruptDataException
CorruptDataException
java.lang.String toString()
java.lang.Object
toString
in class java.lang.Object
boolean equals(java.lang.Object obj)
java.lang.Object
equals
in class java.lang.Object
obj
- Object.hashCode()
int hashCode()
java.lang.Object
true
when passed to
.equals
must answer the same value for this
method.hashCode
in class java.lang.Object
Object.equals(java.lang.Object)
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2004, 2025 IBM Corp. and others.