![]() |
|
|
#include <referencetypecmdset.h>
Inheritance diagram for inspectorj::agent::commandset::ReferenceTypeCmdSet:
Definition at line 44 of file referencetypecmdset.h.
Public Member Functions | |
ReferenceTypeCmdSet (JavaVM *vm, JNIEnv *env, jvmtiEnv *jvmti) | |
Constructor. | |
virtual | ~ReferenceTypeCmdSet () |
Destructor. | |
virtual void | process (JDWPCommand *cmd, boost::function< void(JDWPReply *) > cbk) |
Process a JDWPCommand. | |
Protected Member Functions | |
virtual jvmtiError | getClassModifierString (jclass &, QString &) |
Gets the class modifiers as a string and stores it in a QString reference. | |
virtual jvmtiError | getFieldModifierString (jclass &, jfieldID &, QString &) |
Gets the field modifiers as a string and stores it in a QString reference. | |
virtual jvmtiError | getMethodModifierString (jmethodID &, QString &) |
Gets the method modifiers as a string and stores it in a QString reference. | |
virtual jvmtiError | getReferenceTypeString (jclass &, QString &) |
Gets the reference type as a string and stores it in a QString reference. | |
virtual jvmtiError | getClassSignatureString (jclass &, QString &) |
Gets the class signature as a string and stores it in a QString reference. | |
virtual jvmtiError | getFieldString (jclass &, jfieldID &, QString &, QString &) |
Gets the field data as a string and stores it in a QString reference. | |
virtual jvmtiError | getMethodSignatureString (jmethodID &, QString &, QString &) |
Gets the metod signature as a string and stores it in a QString reference. | |
Private Member Functions | |
void | getFields (JDWPCommand *, boost::function< void(JDWPReply *) >) |
Return the fields for the class with the given referenceTypeID. | |
void | getMethods (JDWPCommand *, boost::function< void(JDWPReply *) >) |
Return the methods for the class with the given referenceTypeID. |
inspectorj::agent::commandset::ReferenceTypeCmdSet::ReferenceTypeCmdSet | ( | JavaVM * | vm, | |
JNIEnv * | env, | |||
jvmtiEnv * | jvmti | |||
) |
inspectorj::agent::commandset::ReferenceTypeCmdSet::~ReferenceTypeCmdSet | ( | ) | [virtual] |
void inspectorj::agent::commandset::ReferenceTypeCmdSet::process | ( | JDWPCommand * | cmd, | |
boost::function< void(JDWPReply *) > | cbk | |||
) | [virtual] |
Process a JDWPCommand.
cmd | The JDWPCommand to process. | |
cbk | The callback to receive a JDWPReply. |
Reimplemented in inspectorj::agent::commandset::BytecodeCmdSet.
Definition at line 58 of file referencetypecmdset.cpp.
References inspectorj::agent::commandset::JDWPCommandSet::cbk, inspectorj::jdwp::JDWPCommand::getCmd(), getFields(), getMethods(), and inspectorj::agent::commandset::JDWPCommandSet::sendNotImplementedReply().
jvmtiError inspectorj::agent::commandset::ReferenceTypeCmdSet::getClassModifierString | ( | jclass & | klass, | |
QString & | modifierStr | |||
) | [protected, virtual] |
Gets the class modifiers as a string and stores it in a QString reference.
klass | the class reference | |
modifierStr | the QString reference to hold the modifiers string |
Definition at line 298 of file referencetypecmdset.cpp.
References inspectorj::agent::commandset::JDWPCommandSet::jvmti.
Referenced by inspectorj::agent::commandset::BytecodeCmdSet::disassembleBytecodes().
jvmtiError inspectorj::agent::commandset::ReferenceTypeCmdSet::getFieldModifierString | ( | jclass & | klass, | |
jfieldID & | fieldId, | |||
QString & | modifierStr | |||
) | [protected, virtual] |
Gets the field modifiers as a string and stores it in a QString reference.
fieldId | the field id | |
modifierStr | the QString reference to hold the modifiers string |
Definition at line 213 of file referencetypecmdset.cpp.
References inspectorj::agent::commandset::JDWPCommandSet::jvmti.
Referenced by inspectorj::agent::commandset::BytecodeCmdSet::disassembleBytecodes().
jvmtiError inspectorj::agent::commandset::ReferenceTypeCmdSet::getMethodModifierString | ( | jmethodID & | methodId, | |
QString & | modifierStr | |||
) | [protected, virtual] |
Gets the method modifiers as a string and stores it in a QString reference.
methodId | the method id | |
modifierStr | the QString reference to hold the modifiers string |
Definition at line 256 of file referencetypecmdset.cpp.
References inspectorj::agent::commandset::JDWPCommandSet::jvmti.
Referenced by inspectorj::agent::commandset::BytecodeCmdSet::disassembleBytecodes().
jvmtiError inspectorj::agent::commandset::ReferenceTypeCmdSet::getReferenceTypeString | ( | jclass & | klass, | |
QString & | refType | |||
) | [protected, virtual] |
Gets the reference type as a string and stores it in a QString reference.
The reference type will one of the following
klass | the class reference | |
refType | the QString reference to hold the reference type |
Definition at line 343 of file referencetypecmdset.cpp.
References inspectorj::agent::commandset::JDWPCommandSet::jvmti.
Referenced by inspectorj::agent::commandset::BytecodeCmdSet::disassembleBytecodes().
jvmtiError inspectorj::agent::commandset::ReferenceTypeCmdSet::getClassSignatureString | ( | jclass & | klass, | |
QString & | signature | |||
) | [protected, virtual] |
Gets the class signature as a string and stores it in a QString reference.
klass | the class reference | |
signature | the QString reference to hold the class signature |
Definition at line 403 of file referencetypecmdset.cpp.
References check_jvmti_error(), and inspectorj::agent::commandset::JDWPCommandSet::jvmti.
Referenced by inspectorj::agent::commandset::BytecodeCmdSet::disassembleBytecodes().
jvmtiError inspectorj::agent::commandset::ReferenceTypeCmdSet::getFieldString | ( | jclass & | klass, | |
jfieldID & | field, | |||
QString & | fieldSig, | |||
QString & | name | |||
) | [protected, virtual] |
Gets the field data as a string and stores it in a QString reference.
field | the class field | |
fieldSig | the QString reference to hold the field data | |
name | the field name |
Definition at line 370 of file referencetypecmdset.cpp.
References inspectorj::agent::commandset::JDWPCommandSet::jvmti.
Referenced by inspectorj::agent::commandset::BytecodeCmdSet::disassembleBytecodes().
jvmtiError inspectorj::agent::commandset::ReferenceTypeCmdSet::getMethodSignatureString | ( | jmethodID & | methodId, | |
QString & | signature, | |||
QString & | name | |||
) | [protected, virtual] |
Gets the metod signature as a string and stores it in a QString reference.
jmethodID | the method id | |
signature | the QString reference to hold the method signature | |
name | the QString reference to hold the method name |
Definition at line 425 of file referencetypecmdset.cpp.
References inspectorj::agent::commandset::JDWPCommandSet::jvmti.
Referenced by inspectorj::agent::commandset::BytecodeCmdSet::disassembleBytecodes().
void inspectorj::agent::commandset::ReferenceTypeCmdSet::getFields | ( | JDWPCommand * | cmd, | |
boost::function< void(JDWPReply *) > | cbk | |||
) | [private] |
Return the fields for the class with the given referenceTypeID.
The referenceTypeID is provided in the JDWPCommand. For each field of the reference type, the following is returned:
Definition at line 79 of file referencetypecmdset.cpp.
References inspectorj::agent::commandset::JDWPCommandSet::cbk, inspectorj::agent::commandset::JDWPCommandSet::getClassMap(), inspectorj::agent::commandset::JDWPCommandSet::getJDWPReply(), inspectorj::agent::commandset::JDWPCommandSet::jvmti, and inspectorj::jdwp::JDWPReply::setErrorCode().
Referenced by process().
void inspectorj::agent::commandset::ReferenceTypeCmdSet::getMethods | ( | JDWPCommand * | cmd, | |
boost::function< void(JDWPReply *) > | cbk | |||
) | [private] |
Return the methods for the class with the given referenceTypeID.
The referenceTypeID is provided in the JDWPCommand. For each method of the reference type, the following is returned:
Definition at line 148 of file referencetypecmdset.cpp.
References inspectorj::agent::commandset::JDWPCommandSet::cbk, inspectorj::agent::commandset::JDWPCommandSet::getClassMap(), inspectorj::agent::commandset::JDWPCommandSet::getJDWPReply(), inspectorj::agent::commandset::JDWPCommandSet::jvmti, and inspectorj::jdwp::JDWPReply::setErrorCode().
Referenced by process().