|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaObject
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()
Get the number of elements in this array. |
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()
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. |
int |
hashCode()
|
boolean |
isArray()
Is this object an array ? |
Method Detail |
---|
JavaClass getJavaClass() throws CorruptDataException
CorruptDataException
boolean isArray() throws CorruptDataException
CorruptDataException
int getArraySize() throws CorruptDataException
CorruptDataException
java.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 dst to start copying intolength
- the number of elements to be copied
CorruptDataException
MemoryAccessException
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 dstlong getSize() throws CorruptDataException
CorruptDataException
long getHashcode() throws DataUnavailable, CorruptDataException
DataUnavailable
- if the hash code cannot be determined
CorruptDataException
getPersistentHashcode()
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()
ImagePointer getID()
java.util.Iterator getSections()
ImageSection
,
CorruptData
java.util.Iterator getReferences()
JavaReference
,
CorruptData
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 |