#include <allocObject.h>
Inheritance diagram for AllocObject::
Public Methods | |
AllocObject () | |
Default constructor. | |
virtual | ~AllocObject () |
Destructor. | |
const AllocObjectKey & | getKey (AllocObjectKey &key) |
Retrieves object's key. More... | |
int | operator== (const AllocObjectKey &key) |
Compares object with given key. More... | |
virtual Buffer & | infoToBin (Buffer &b) |
Convert info to binary. More... | |
void | deactivate () |
Performs deactivation. | |
void * | operator new (size_t sz) |
Overloaded new() operator. | |
void | operator delete (void *unit) |
Overloaded delete() operator. | |
virtual eClassIdent | getClassIdent () |
Class identification. More... | |
virtual int | isActive () |
State of object. More... | |
virtual int | isChanged () |
Indication that object has changed its data. More... | |
virtual void | setUnchanged () |
Set the structure is unchanged although it may not be. | |
Static Public Methods | |
int | hashKey (const AllocObjectKey &key) |
Hash function. More... | |
Public Attributes | |
Class * | clss |
corresponding class or NULL for a primitive type. | |
jobjectID | classId |
Java class ID of the object's class. | |
jint | isArray |
Type of object (eg. More... | |
List< AllocObjectMethod, LI1 > | objectMethods |
associated AllocObjectMethods. | |
List< AllocThreadObject, LI2 > | threadObjects |
associated AllocThreadObjects. | |
Static Private Attributes | |
Allocator | _allocator |
allocator. |
This class consists of data about type of object. Java objects can be differentiated by the couple (class, isArray), where 'class' means class of the object and 'isArray' contains a value if the object is a normal object or an array of objects of the given 'class'. Data is aquired by receiving a JVMPI_EVENT_OBJECT_ALLOC event.
Definition at line 61 of file allocObject.h.
|
Class identification.
Reimplemented from IdObject. Definition at line 169 of file allocObject.h. |
|
Retrieves object's key.
Definition at line 81 of file allocObject.cpp. Referenced by AllocThreadObject::getKey(), and AllocObjectMethod::getKey().
|
|
Hash function.
Definition at line 95 of file allocObject.cpp. Referenced by AllocObjectTrace::hashKey(), and AllocObjectMethod::hashKey().
|
|
Convert info to binary. This method converts information data to binary format in which it is sent thru communication interface to client.
Reimplemented from InfoBinaryFormat. Definition at line 43 of file allocObject.cpp. |
|
State of object. Once an object is unactive, it remains unactive forever.
Reimplemented from IdObject. Definition at line 100 of file allocObject.cpp. Referenced by AllocThreadObject::isActive(), and AllocObjectMethod::isActive().
|
|
Indication that object has changed its data.
Reimplemented from IdObject. Definition at line 184 of file allocObject.h. |
|
Compares object with given key.
Definition at line 88 of file allocObject.cpp. |
|
Type of object (eg. JVMPI_NORMAL_OBJECT, JVMPI_CLASS, JVMPI_BOOLEAN etc.). These values say if the object is normal object or an array of objects (of given class) or an array of primitive type (boolean, short etc.).
Definition at line 81 of file allocObject.h. Referenced by Prof::getAllocObject().
|