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

Method Class Reference

Java method. More...

#include <method.h>

Inheritance diagram for Method::

LI1 LI2 IdObject AllocStatData CpuStatData MonStatData InfoBinaryFormat StatDataModification DataBinaryFormat StatDataModification DataBinaryFormat StatDataModification DataBinaryFormat ListItem ListItem List of all members.

Public Methods

 Method ()
 Default constructor.

virtual ~Method ()
 Destructor.

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

int operator== (const jmethodID &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...

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 jmethodID &key)
 Hash function. More...


Public Attributes

String methodName
 name of method.

String methodSignature
 signature of method.

jint startLineno
 start line number in the source file.

jint endLineno
 end line number in the source file.

jmethodID methodId
 ID given to this method.

Classclss
 parent class.

List< AllocTrace, LI2allocTraces
 associated AllocTraces.

List< AllocObjectMethod, LI2allocObjectMethods
 associated AllocObjectMethods.

List< AllocThreadMethod, LI3allocThreadMethods
 associated AllocThreadMethods.

List< CpuTrace, LI2cpuTraces
 associated CpuTraces.

List< CpuThreadMethod, LI3cpuThreadMethods
 associated CpuThreadMethods.

List< MonTrace, LI2monTraces
 associated MonTraces.

List< MonThreadMethod, LI3monThreadMethods
 associated MonThreadMethods.


Static Private Attributes

Allocator _allocator
 method allocator.


Detailed Description

Java method.

This class consists of data about loaded Java method (gained by receiving a JVMPI_EVENT_CLASS_LOAD event).

See also:
Class
Author:
Marek Przeczek, Petr Luner

Definition at line 65 of file method.h.


Member Function Documentation

virtual eClassIdent Method::getClassIdent   [inline, virtual]
 

Class identification.

Returns:
unique class type identifier

Reimplemented from IdObject.

Definition at line 194 of file method.h.

const jmethodID& Method::getKey jmethodID &    key [inline]
 

Retrieves object's key.

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

Definition at line 136 of file method.h.

Referenced by MonThreadMethod::getKey(), CpuThreadMethod::getKey(), AllocThreadMethod::getKey(), and AllocObjectMethod::getKey().

int Method::hashKey const jmethodID &    key [inline, static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 155 of file method.h.

Referenced by Trace::hashKey().

Buffer & Method::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 49 of file method.cpp.

int Method::isActive   [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 101 of file method.cpp.

Referenced by MonTrace::isActive(), MonThreadMethod::isActive(), CpuTrace::isActive(), CpuThreadMethod::isActive(), AllocTrace::isActive(), AllocThreadMethod::isActive(), and AllocObjectMethod::isActive().

int Method::isChanged   [virtual]
 

Indication that object has changed its data.

Returns:
0 (no change); 1 (data changed)

Reimplemented from IdObject.

Definition at line 106 of file method.cpp.

int Method::operator== const jmethodID &    key [inline]
 

Compares object with given key.

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

Definition at line 147 of file method.h.


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