|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.squawk.debugger.JDWPListener.CommandSet
public abstract static class JDWPListener.CommandSet
The implementation of each JDWP Command Set subclasses this class.
Field Summary | |
---|---|
protected CommandPacket |
command
The command currently being processed. |
protected PacketInputStream |
in
Stream from which data of current command is read. |
protected PacketOutputStream |
out
Stream to which data in reply is written. |
protected ReplyPacket |
reply
The reply to the current command. |
Constructor Summary | |
---|---|
JDWPListener.CommandSet()
|
Method Summary | |
---|---|
protected abstract boolean |
dispatch()
Dispatches to the handler for the specific command in the command set. |
protected void |
error(int errorCode)
Used by subclasses to change the error code sent in the reply. |
boolean |
handle(JDWPListener listener,
CommandPacket command)
Handles a command packet by setting up the variables used to interpret and reply to the command and then dispatching to the specific command handler. |
protected void |
postDispatch()
A hook for the handler to do any post-processing after it has handled a command and the reply was sent (if applicable). |
protected void |
unimplemented()
Reports that the JDWP/SDWP command is not (currently) implemented. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CommandPacket command
protected ReplyPacket reply
protected PacketInputStream in
protected PacketOutputStream out
Constructor Detail |
---|
public JDWPListener.CommandSet()
Method Detail |
---|
public final boolean handle(JDWPListener listener, CommandPacket command) throws IOException
listener
- the listener to reply throughcommand
- the command to be handled
IOException
- if there was an IO error while sending a replyprotected abstract boolean dispatch() throws IOException, SDWPException
IOException
- if an IO error occurs
SDWPException
- if a JDWP/SDWP protocol error occursprotected final void error(int errorCode)
errorCode
- the new error codeprotected final void unimplemented()
protected void postDispatch()
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |