public interface JavaObject
| Modifier and Type | Method and Description |
|---|---|
void |
arraycopy(int srcStart,
java.lang.Object dst,
int dstStart,
int length)
Copies data from the image array into a local Java array.
|
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.
|
int |
getArraySize()
Get the number of elements in this array.
|
long |
getHashcode()
Fetch the basic hash code for the object.
|
JavaHeap |
getHeap()
Gets the heap where this object is located.
|
ImagePointer |
getID()
The ID of an object is a unique address is memory which identifies the object.
|
JavaClass |
getJavaClass()
Get the JavaClass instance which represents the class of this object.
|
long |
getPersistentHashcode()
Fetch the basic hash code of the object in the image.
|
java.util.Iterator |
getReferences()
Get the set of references from this object.
|
java.util.Iterator |
getSections()
An object is represented in the Java runtime by one or more regions of memory.
|
long |
getSize()
Get the number of bytes of memory occupied by this object on the heap.
|
int |
hashCode()
Answers an integer hash code for the receiver.
|
boolean |
isArray()
Is this object an array?
|
JavaClass getJavaClass() throws CorruptDataException
CorruptDataExceptionboolean isArray()
throws CorruptDataException
CorruptDataExceptionint getArraySize()
throws CorruptDataException
CorruptDataExceptionjava.lang.IllegalArgumentException - if the receiver is not an arrayvoid arraycopy(int srcStart,
java.lang.Object dst,
int dstStart,
int length)
throws CorruptDataException,
MemoryAccessException
srcStart - index in the receiver to start copying fromdst - the destination arraydstStart - index in the destination array to start copying intolength - the number of elements to be copiedCorruptDataExceptionMemoryAccessExceptionjava.lang.NullPointerException - if dst is nulljava.lang.IllegalArgumentException - if the receiver is not an array,
or if dst is not an array of the appropriate typejava.lang.IndexOutOfBoundsException - if srcStart, dstStart, or length
are out of bounds in either the receiver or the destination arraylong getSize()
throws CorruptDataException
CorruptDataExceptionlong getHashcode()
throws DataUnavailable,
CorruptDataException
DataUnavailable - if the hash code cannot be determinedCorruptDataExceptiongetPersistentHashcode()long getPersistentHashcode()
throws DataUnavailable,
CorruptDataException
If the VM uses a 'hasBeenHashed' bit, the value of this bit can be inferred by calling getPersistentHashcode(). If the persistent hash code is not available, then the 'hasBeenHashed' bit has not been set, and the hash of the object could change if the object moves between snapshots
DataUnavailable - if a hash code cannot be determined, or if the
hash code could change between successive snapshotsCorruptDataExceptiongetHashcode()ImagePointer getID()
java.util.Iterator getSections()
ImageSection,
CorruptDatajava.util.Iterator getReferences()
JavaReference,
CorruptDataJavaHeap getHeap() throws CorruptDataException, DataUnavailable
JavaHeap instance representing the heap where this object is stored in memoryCorruptDataException - if the heap information for this object is corruptDataUnavailable - if the heap information for this object is not availableJavaHeapboolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object
the object to compare with this object.true
if the object is the same as this object
false
if it is different from this object.Object.hashCode()int hashCode()
true when passed to
.equals must answer the same value for this
method.hashCode in class java.lang.ObjectObject.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.
DRAFT internal-b00