Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Class Class Reference

Java class. More...

#include <class.h>

Inheritance diagram for Class::

LI1 LI2 IdObject InfoBinaryFormat ListItem ListItem RefCount RefCount List of all members.

Public Methods

 Class ()
 Default constructor.

virtual ~Class ()
 Destructor.

const jobjectID & getKey (jobjectID &key)
 Retrieves object's key. More...

int operator== (const jobjectID &key)
 Compares object with given key. More...

virtual BufferinfoToBin (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...


Static Public Methods

int hashKey (const jobjectID &key)
 Hash function. More...


Public Attributes

String className
 name of class.

String sourceName
 name of source file that defines the class.

jint numInterfaces
 number of interfaces implemented by this class.

jint numMethods
 number of methods defined in this class.

List< Method, LI2methods
 methods defined in this class.

jint numStaticFields
 number of static fields defined in this class.

List< ClassField, LI1statics
 static fields defined in this class.

jint numInstanceFields
 number of instance fields defined in this class.

List< ClassField, LI1instances
 instance fields defined in this class.

jobjectID classId
 class object ID.

int active
 active or not.

AllocObjectallocObject
 corresponding normal AllocObject.

AllocObjectallocObjectArray
 corresponding array AllocObject.


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

Java class.

This class consists of data aquired by receiving a JVMPI_EVENT_CLASS_LOAD event. There is data about the loaded class here. When class is unloaded (when a JVMPI_EVENT_CLASS_UNLOAD event received), this data is no longer valid, so in this case an 'active' field equals zero.

See also:
ClassField, Method
Author:
Marek Przeczek, Petr Luner

Definition at line 60 of file class.h.


Member Function Documentation

virtual eClassIdent Class::getClassIdent   [inline, virtual]
 

Class identification.

Returns:
unique class type identifier

Reimplemented from IdObject.

Definition at line 190 of file class.h.

const jobjectID& Class::getKey jobjectID &    key [inline]
 

Retrieves object's key.

Parameters:
key  where to store the key
Returns:
key
See also:
Hash

Definition at line 132 of file class.h.

int Class::hashKey const jobjectID &    key [inline, static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 151 of file class.h.

Referenced by AllocObject::hashKey().

Buffer & Class::infoToBin Buffer   b [virtual]
 

Convert info to binary.

This method converts information data to binary format in which it is sent thru communication interface to client.

Parameters:
b  buffer where to append data
Returns:
reference to same Buffer object as argument 'b'

Reimplemented from InfoBinaryFormat.

Definition at line 43 of file class.cpp.

virtual int Class::isActive   [inline, virtual]
 

State of object.

Once an object is unactive, it remains unactive forever.

Returns:
0 (not active) 1 (active)

Reimplemented from IdObject.

Definition at line 198 of file class.h.

Referenced by Method::isActive().

int Class::operator== const jobjectID &    key [inline]
 

Compares object with given key.

Parameters:
key  key
Returns:
1 (true); 0 (false)
See also:
Hash

Definition at line 143 of file class.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 14:53:28 2002 for Java Profiler Dynamic Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001