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



inspectorj::jdwp::JDWPReply Class Reference

#include <jdwpreply.h>

Inheritance diagram for inspectorj::jdwp::JDWPReply:

Inheritance graph
[legend]
Collaboration diagram for inspectorj::jdwp::JDWPReply:

Collaboration graph
[legend]
List of all members.

Detailed Description

JDWPReply wraps the jdwpReplyPacket struct.

Author:
James May
See also:
jdwpTransport.h

Definition at line 42 of file jdwpreply.h.

Public Member Functions

 JDWPReply (jdwpReplyPacket &)
 Constructor that wraps a jdwpReplyPacket struct.
 ~JDWPReply ()
 Destructor.
jbyte getPacketType ()
 Returns a jbyte that indicates whether this is reply packet or a command packet.
jint getId ()
 Returns the packet id.
short getErrorCode ()
 Returns the error code if any.
void setErrorCode (short)
JDWPReplycopy ()
 Copy function that produces a deep copy of this.

Private Attributes

jdwpReplyPacket reply
 The jdwpReplyPacket struct.


Constructor & Destructor Documentation

JDWPReply::JDWPReply ( jdwpReplyPacket &  replyPacket  ) 

Constructor that wraps a jdwpReplyPacket struct.

See also:
jdwpTransport.h
Parameters:
replyPacket A jdwpReplyPacket struct

Definition at line 38 of file jdwpreply.cpp.

References inspectorj::jdwp::JDWPPacket::bytes, inspectorj::jdwp::JDWPPacket::data, inspectorj::jdwp::JDWP_HEADER_LENGTH, and reply.

Referenced by copy().

JDWPReply::~JDWPReply (  ) 

Destructor.

Definition at line 77 of file jdwpreply.cpp.

References reply.


Member Function Documentation

jbyte JDWPReply::getPacketType (  )  [virtual]

Returns a jbyte that indicates whether this is reply packet or a command packet.

Implements inspectorj::jdwp::JDWPPacket.

Definition at line 89 of file jdwpreply.cpp.

Referenced by inspectorj::agent::AgentSocket::writeReply().

jint JDWPReply::getId (  )  [virtual]

Returns the packet id.

Implements inspectorj::jdwp::JDWPPacket.

Definition at line 97 of file jdwpreply.cpp.

References reply.

Referenced by inspectorj::agent::AgentSocket::writeReply().

short JDWPReply::getErrorCode (  )  [virtual]

Returns the error code if any.

Reimplemented from inspectorj::jdwp::JDWPPacket.

Definition at line 105 of file jdwpreply.cpp.

References reply.

Referenced by inspectorj::agent::AgentSocket::writeReply().

JDWPReply * JDWPReply::copy (  )  [virtual]

Copy function that produces a deep copy of this.

This function re-implements JDWPPacket::copy(). This is necessary since the base class, JDWPPacket, has pure virtual functions and therefore cannot provide a copy constructor.

Implements inspectorj::jdwp::JDWPPacket.

Definition at line 69 of file jdwpreply.cpp.

References JDWPReply(), and reply.


Member Data Documentation

jdwpReplyPacket inspectorj::jdwp::JDWPReply::reply [private]

The jdwpReplyPacket struct.

Definition at line 55 of file jdwpreply.h.

Referenced by copy(), getErrorCode(), getId(), JDWPReply(), setErrorCode(), and ~JDWPReply().


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