ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



inspectorj::model::JavaClass Class Reference

#include <javaclass.h>

Collaboration diagram for inspectorj::model::JavaClass:

Collaboration graph
[legend]
List of all members.

Detailed Description

JavaClass represents a class or other reference that is loaded in the remote jvm.

Definition at line 52 of file javaclass.h.

Public Slots

void setFields (JDWPPacket &)
 Sets the fields of this class.
void setMethods (JDWPPacket &)
 Sets the methods of this class.

Signals

void initialized ()

Public Member Functions

 JavaClass ()
 Constructor.
 JavaClass (const JavaClass &)
 Copy constructor.
 ~JavaClass ()
 Destructor.
jbyte getRefTypeTag ()
 Returns the reference type of this reference.
ReferenceTypeIDgetRefTypeId ()
 Returns the reference type id of this reference.
QString getJNIClassSignature ()
 Returns the JNI class signature.
QString getClassSignature () const
 Returns the normalized signature.
QList< JavaField * > & getFields ()
 Returns this class' fields.
QList< JavaMethod * > & getMethods ()
 Returns this class' methods.
int getStatus ()
 Returns the status of this reference.
void setRefTypeTag (jbyte)
 Sets the reference type tag of this reference.
void setRefTypeId (ReferenceTypeID)
 Sets the reference type id of this reference.
void setJNIClassSignature (QString)
 Sets the JNI Class signature of this class.
void setClassSignature (QString)
 Sets the normalized class signature of this reference.
void setStatus (int)
 Sets the status of this reference.
bool isMethodsSet ()
 Returns true if the methods have already been set on this JavaClass.
bool isFieldsSet ()
 Returns true if the fields have been set on this JavaClass.
bool isInitialized ()
 Emits the initialized signal and returns true if the fields and methods of this JavaClass have been initialized.
bool const operator== (const JavaClass &another)
bool operator== (const ReferenceTypeID &)
bool operator< (const JavaClass &rhs)
JavaClassoperator= (const model::JavaClass &)

Private Member Functions

void addField (JavaField *)
 Add a field to this class.
void addMethod (JavaMethod *)
 Add a method to this class.

Private Attributes

jbyte refTypeTag
 the reference type tag (object, class, classLoader, Short, etc..)
ReferenceTypeID refTypeId
 The reference type id.
QString jniClassSignature
 JNIClassSignature (Ljava/lang/String;).
QString classSignature
 normalized class signature (java.lang.String)
int status
 status of this reference (VERIFIED, PREPARED, INTIIALIZED, or ERROR)
QList< JavaField * > fields
QList< JavaMethod * > methods
bool fieldsSet
bool methodsSet


Constructor & Destructor Documentation

inspectorj::model::JavaClass::JavaClass (  ) 

Constructor.

Definition at line 37 of file javaclass.cpp.

inspectorj::model::JavaClass::JavaClass ( const JavaClass  ) 

Copy constructor.

Definition at line 45 of file javaclass.cpp.

References classSignature, fields, jniClassSignature, methods, refTypeId, refTypeTag, and status.

inspectorj::model::JavaClass::~JavaClass (  ) 

Destructor.

Definition at line 71 of file javaclass.cpp.

References fields, and methods.


Member Function Documentation

jbyte inspectorj::model::JavaClass::getRefTypeTag (  ) 

Returns the reference type of this reference.

Definition at line 88 of file javaclass.cpp.

References refTypeTag.

ReferenceTypeID & inspectorj::model::JavaClass::getRefTypeId (  ) 

Returns the reference type id of this reference.

Definition at line 96 of file javaclass.cpp.

References refTypeId.

QString inspectorj::model::JavaClass::getJNIClassSignature (  ) 

Returns the JNI class signature.

Definition at line 104 of file javaclass.cpp.

References jniClassSignature.

Referenced by inspectorj::model::ClassTreeModel::initModel().

QString inspectorj::model::JavaClass::getClassSignature (  )  const

Returns the normalized signature.

Definition at line 112 of file javaclass.cpp.

References classSignature.

Referenced by operator<(), setMethods(), and inspectorj::model::ClassTreeModel::setupModelData().

QList< JavaField * > & inspectorj::model::JavaClass::getFields (  ) 

Returns this class' fields.

Definition at line 281 of file javaclass.cpp.

References fields.

Referenced by inspectorj::model::ClassTreeModel::setupModelData().

QList< JavaMethod * > & inspectorj::model::JavaClass::getMethods (  ) 

Returns this class' methods.

Definition at line 289 of file javaclass.cpp.

References methods.

Referenced by inspectorj::model::ClassTreeModel::setupModelData().

int inspectorj::model::JavaClass::getStatus (  ) 

Returns the status of this reference.

Definition at line 80 of file javaclass.cpp.

References status.

void inspectorj::model::JavaClass::setRefTypeTag ( jbyte   ) 

Sets the reference type tag of this reference.

Definition at line 120 of file javaclass.cpp.

void inspectorj::model::JavaClass::setRefTypeId ( ReferenceTypeID   ) 

Sets the reference type id of this reference.

Definition at line 128 of file javaclass.cpp.

References refTypeId.

void inspectorj::model::JavaClass::setJNIClassSignature ( QString   ) 

Sets the JNI Class signature of this class.

Definition at line 136 of file javaclass.cpp.

References jniClassSignature.

void inspectorj::model::JavaClass::setClassSignature ( QString   ) 

Sets the normalized class signature of this reference.

Definition at line 144 of file javaclass.cpp.

References classSignature.

void inspectorj::model::JavaClass::setStatus ( int   ) 

Sets the status of this reference.

Definition at line 152 of file javaclass.cpp.

bool inspectorj::model::JavaClass::isMethodsSet (  ) 

Returns true if the methods have already been set on this JavaClass.

Definition at line 169 of file javaclass.cpp.

References methodsSet.

bool inspectorj::model::JavaClass::isFieldsSet (  ) 

Returns true if the fields have been set on this JavaClass.

Definition at line 177 of file javaclass.cpp.

References fieldsSet.

bool inspectorj::model::JavaClass::isInitialized (  ) 

Emits the initialized signal and returns true if the fields and methods of this JavaClass have been initialized.

Otherwise returns false immediately.

Definition at line 161 of file javaclass.cpp.

References fieldsSet, and methodsSet.

void inspectorj::model::JavaClass::setFields ( JDWPPacket packet  )  [slot]

Sets the fields of this class.

Parameters:
packet Packet containing the field data.

Definition at line 204 of file javaclass.cpp.

References addField(), fieldsSet, inspectorj::client::ClientPacketHandler::handleJDWPError(), methodsSet, inspectorj::toolset::ToolSetUtils::normalizeClassSignature(), inspectorj::model::JavaField::setFieldId(), inspectorj::model::JavaField::setFieldName(), inspectorj::model::JavaField::setFieldSignature(), inspectorj::model::JavaField::setJNIFieldSignature(), and inspectorj::model::JavaField::setModBits().

void inspectorj::model::JavaClass::setMethods ( JDWPPacket packet  )  [slot]

Sets the methods of this class.

Parameters:
packet The Packet containing the method data.

Definition at line 243 of file javaclass.cpp.

References addMethod(), fieldsSet, getClassSignature(), inspectorj::client::ClientPacketHandler::handleJDWPError(), methodsSet, inspectorj::toolset::ToolSetUtils::normalizeMethodSignature(), inspectorj::model::JavaMethod::setJNIMethodSignature(), inspectorj::model::JavaMethod::setMethodId(), inspectorj::model::JavaMethod::setMethodName(), inspectorj::model::JavaMethod::setMethodSignature(), and inspectorj::model::JavaMethod::setModBits().

void inspectorj::model::JavaClass::addField ( JavaField field  )  [private]

Add a field to this class.

Parameters:
field The field to add.

Definition at line 186 of file javaclass.cpp.

References fields.

Referenced by setFields().

void inspectorj::model::JavaClass::addMethod ( JavaMethod method  )  [private]

Add a method to this class.

Parameters:
method The method to add.

Definition at line 195 of file javaclass.cpp.

References methods.

Referenced by setMethods().


Member Data Documentation

jbyte inspectorj::model::JavaClass::refTypeTag [private]

the reference type tag (object, class, classLoader, Short, etc..)

Definition at line 98 of file javaclass.h.

Referenced by getRefTypeTag(), JavaClass(), operator=(), and operator==().

ReferenceTypeID inspectorj::model::JavaClass::refTypeId [private]

The reference type id.

Definition at line 101 of file javaclass.h.

Referenced by getRefTypeId(), JavaClass(), operator=(), operator==(), and setRefTypeId().

QString inspectorj::model::JavaClass::jniClassSignature [private]

JNIClassSignature (Ljava/lang/String;).

Definition at line 104 of file javaclass.h.

Referenced by getJNIClassSignature(), JavaClass(), operator=(), and setJNIClassSignature().

QString inspectorj::model::JavaClass::classSignature [private]

normalized class signature (java.lang.String)

Definition at line 107 of file javaclass.h.

Referenced by getClassSignature(), JavaClass(), operator=(), and setClassSignature().

int inspectorj::model::JavaClass::status [private]

status of this reference (VERIFIED, PREPARED, INTIIALIZED, or ERROR)

Definition at line 110 of file javaclass.h.

Referenced by getStatus(), JavaClass(), and operator=().


The documentation for this class was generated from the following files:
Generated on Sun Aug 19 17:08:18 2007 for inspectorJ by  doxygen 1.5.1