|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a Java object
Method Summary | |
---|---|
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)
|
int |
getArraySize()
|
long |
getHashcode()
Fetch the basic hash code for the object. |
ImagePointer |
getID()
The ID of an object is a unique address is memory which identifies the object. |
JavaClass |
getJavaClass()
|
long |
getPersistentHashcode()
Fetch the basic hash code of the object in the image. |
java.util.Iterator |
getSections()
An object is represented in the Java runtime by one or more regions of memory. |
long |
getSize()
|
int |
hashCode()
|
boolean |
isArray()
|
Method Detail |
public JavaClass getJavaClass() throws CorruptDataException
CorruptDataException
public boolean isArray() throws CorruptDataException
CorruptDataException
public int getArraySize() throws CorruptDataException
java.lang.IllegalArgumentException
- if the receiver is not an array
CorruptDataException
public void 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 dst to start copying intolength
- the number of elements to be copied
java.lang.IllegalArgumentException
- if the receiver is not an array,
or if dst is not an array of the appropriate type
java.lang.IndexOutOfBoundsException
- if srcStart, dstStart, or length
are out of bounds in either the receiver or dst
CorruptDataException
MemoryAccessException
public long getSize() throws CorruptDataException
CorruptDataException
public long getHashcode() throws DataUnavailable, CorruptDataException
DataUnavailable
- if the hash code cannot be determined
CorruptDataException
getPersistentHashcode()
public 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 snapshots
CorruptDataException
getHashcode()
public ImagePointer getID()
public java.util.Iterator getSections()
ImageSection
,
CorruptData
public boolean equals(java.lang.Object obj)
obj
-
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |