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



src/inspectorj/agent/commandset/referencetypecmdset.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   inspectorJ - java profiler                                            *
00003  *   Copyright (C) 2007 by James May
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00027 #ifndef INSPECTORJ_AGENT_COMMANDSET_REFERENCETYPECMDSET_H
00028 #define INSPECTORJ_AGENT_COMMANDSET_REFERENCETYPECMDSET_H
00029 
00030 #include "inspectorj/agent/commandset/jdwpcommandset.h"
00031 #include "inspectorj/agent/classfile_constants.h"
00032 #include "inspectorj/toolset/toolsetutils.h"
00033 
00034 namespace inspectorj {
00035 namespace agent {
00036 namespace commandset {
00037 
00044 class ReferenceTypeCmdSet : public JDWPCommandSet
00045 {
00046 public:
00047     ReferenceTypeCmdSet(JavaVM *vm, JNIEnv *env, jvmtiEnv *jvmti);
00048     virtual ~ReferenceTypeCmdSet();
00049     virtual void process(JDWPCommand* cmd, boost::function< void (JDWPReply*) > cbk);
00050     
00051 protected:
00052     virtual jvmtiError getClassModifierString(jclass&, QString&);
00053     virtual jvmtiError getFieldModifierString(jclass&, jfieldID&, QString&);
00054     virtual jvmtiError getMethodModifierString(jmethodID&, QString&);
00055     virtual jvmtiError getReferenceTypeString(jclass&, QString&);
00056     virtual jvmtiError getClassSignatureString(jclass&, QString&);
00057     virtual jvmtiError getFieldString(jclass&, jfieldID&, QString&, QString&);
00058     virtual jvmtiError getMethodSignatureString(jmethodID&, QString&, QString&);
00059             
00060 private:
00061     void getFields(JDWPCommand*, boost::function< void (JDWPReply*) >);  
00062     void getMethods(JDWPCommand*, boost::function< void (JDWPReply*) >);
00063 
00064 };
00065 
00066 } // end namespace commandset
00067 } // end namespace agent
00068 } // end namespace inspectorj
00069 
00070 #endif // INSPECTORJ_AGENT_COMMANDSET_REFERENCETYPECMDSET_H

Generated on Sun Aug 19 17:07:53 2007 for inspectorJ by  doxygen 1.5.1