![]() |
|
|
#include <javaclass.h>
Collaboration diagram for inspectorj::model::JavaClass:
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. | |
ReferenceTypeID & | getRefTypeId () |
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) |
JavaClass & | operator= (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 |
inspectorj::model::JavaClass::JavaClass | ( | ) |
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 | ( | ) |
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 | ) |
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 | ) |
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.
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.
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.
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.
method | The method to add. |
Definition at line 195 of file javaclass.cpp.
References methods.
Referenced by setMethods().
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==().
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=().