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



inspectorj::agent::commandset::ReferenceTypeCmdSet Class Reference

#include <referencetypecmdset.h>

Inheritance diagram for inspectorj::agent::commandset::ReferenceTypeCmdSet:

Inheritance graph
[legend]
Collaboration diagram for inspectorj::agent::commandset::ReferenceTypeCmdSet:

Collaboration graph
[legend]
List of all members.

Detailed Description

ReferenceTypeCmdSet is a commandSet for executing reference type commands.

Author:
James May

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.


Constructor & Destructor Documentation

inspectorj::agent::commandset::ReferenceTypeCmdSet::ReferenceTypeCmdSet ( JavaVM *  vm,
JNIEnv *  env,
jvmtiEnv *  jvmti 
)

Constructor.

Definition at line 38 of file referencetypecmdset.cpp.

inspectorj::agent::commandset::ReferenceTypeCmdSet::~ReferenceTypeCmdSet (  )  [virtual]

Destructor.

Definition at line 48 of file referencetypecmdset.cpp.


Member Function Documentation

void inspectorj::agent::commandset::ReferenceTypeCmdSet::process ( JDWPCommand cmd,
boost::function< void(JDWPReply *) >  cbk 
) [virtual]

Process a JDWPCommand.

Parameters:
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.

Parameters:
klass the class reference
modifierStr the QString reference to hold the modifiers string
Returns:
jmvtiError

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.

Parameters:
fieldId the field id
modifierStr the QString reference to hold the modifiers string
Returns:
jmvtiError

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.

Parameters:
methodId the method id
modifierStr the QString reference to hold the modifiers string
Returns:
jmvtiError

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

Parameters:
klass the class reference
refType the QString reference to hold the reference type
Returns:
jvmtiError

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.

Parameters:
klass the class reference
signature the QString reference to hold the class signature
Returns:
jmvtiError

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.

Parameters:
field the class field
fieldSig the QString reference to hold the field data
name the field name
Returns:
jmvtiError

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.

Parameters:
jmethodID the method id
signature the QString reference to hold the method signature
name the QString reference to hold the method name
Returns:
jmvtiError

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().


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