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

MethodInfo Class Reference

#include <threads.h>

List of all members.

Public Methods

 MethodInfo (const MethodInfo &)
 ~MethodInfo ()
 MethodInfo (char *method_name, char *method_signature, jint, jint, jmethodID method_id, jobjectID class_id)
jobjectID getClassID () const
const char* getShortInfo () const

Private Attributes

char* m_short_string
jobjectID m_class_id
jmethodID m_method_id
bool m_used
char* m_method_name
char* m_method_signature


Constructor & Destructor Documentation

MethodInfo::MethodInfo ( const MethodInfo & mi )
 

Definition at line 144 of file threads.cpp.

00145 {
00146     m_class_id = mi.m_class_id;
00147     m_method_id = mi.m_method_id;
00148     m_method_name = mi.m_method_name;
00149     m_method_signature = mi.m_method_signature;
00150     m_short_string = null;
00151 }

MethodInfo::~MethodInfo ( )
 

Definition at line 153 of file threads.cpp.

00154 {
00155     cout << "~MI " << m_method_id << endl;
00156     delete[] m_short_string;
00157 }

MethodInfo::MethodInfo ( char * method_name,
char * method_signature,
jint,
jint,
jmethodID method_id,
jobjectID class_id )
 

Definition at line 175 of file threads.cpp.

00182 {
00183     m_class_id = class_id;
00184     m_method_id = method_id;
00185     m_short_string = null;
00186 
00187     if (!HotSpot)
00188     {
00189         m_method_name = method_name;
00190         m_method_signature = method_signature; 
00191     }
00192     else
00193     {
00194         m_method_name = new char[512];
00195         m_method_signature = new char[512];
00196         strncpy(m_method_name, method_name, 512);
00197         strncpy(m_method_signature, method_signature , 512);
00198     }
00199     
00200     //printf("%s\n",m_short_string);
00201 }


Member Function Documentation

jobjectID MethodInfo::getClassID ( ) const [inline]
 

Definition at line 170 of file threads.cpp.

Referenced by ThreadDump().

00171 {
00172     return m_class_id;
00173 }

const char * MethodInfo::getShortInfo ( ) const [inline]
 

Definition at line 161 of file threads.cpp.

Referenced by ThreadDump().

00162 {
00163     if (m_short_string != null)
00164         return m_short_string;
00165     
00166     m_short_string = new char[512];
00167     _snprintf(m_short_string, 512, "%08X %08X %s %s\0", m_class_id, m_method_id, m_method_name, m_method_signature);
00168     return m_short_string;
00169 }


Member Data Documentation

jobjectID MethodInfo::m_class_id [private]
 

Definition at line 81 of file threads.h.

jmethodID MethodInfo::m_method_id [private]
 

Definition at line 82 of file threads.h.

char * MethodInfo::m_method_name [private]
 

Definition at line 84 of file threads.h.

char * MethodInfo::m_method_signature [private]
 

Definition at line 85 of file threads.h.

char * MethodInfo::m_short_string [mutable, private]
 

Definition at line 80 of file threads.h.

bool MethodInfo::m_used [private]
 

Definition at line 83 of file threads.h.


The documentation for this class was generated from the following files:
Generated at Sun Jun 24 20:59:21 2001 for xdprof by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001