|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.eclipse.m2m.atl.debug.core.adwp.ADWP
public abstract class ADWP
ATL Debug Wire Protocol: declarations for ATL VM debugging protocol. Debugger and debuggee share most protocol code.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static int |
CMD_CALL
Call. |
static int |
CMD_CONTINUE
Continues. |
static int |
CMD_DISASSEMBLE
Disassemble. |
static int |
CMD_FINISH
Finish. |
static int |
CMD_GET
Get. |
static int |
CMD_QUERY
Query. |
static int |
CMD_SET
Set. |
static int |
CMD_SET_BP
Set breakpoint. |
static int |
CMD_STEP
Step. |
static int |
CMD_STEP_OVER
Step over. |
static int |
CMD_UNSET_BP
Unset breakpoint. |
protected java.io.DataInputStream |
in
|
static int |
MSG_ANS
Answer. |
static int |
MSG_DISAS_CODE
Disassemble. |
static int |
MSG_STOPPED
Stopped. |
static int |
MSG_TERMINATED
Terminated. |
protected java.io.DataOutputStream |
out
|
static int |
TYPE_BOOLEAN
BooleanValue . |
static int |
TYPE_INTEGER
IntegerValue . |
static int |
TYPE_NULL
NullValue . |
static int |
TYPE_OBJECT
Object. |
static int |
TYPE_REAL
RealValue . |
static int |
TYPE_STRING
StringValue . |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ADWP(java.io.InputStream in,
java.io.OutputStream out)
Creates the protocol using the given streams. |
Method Summary | |
---|---|
ADWPCommand |
readCommand()
Reads a command. |
protected abstract ObjectReference |
readObjectReference(int id)
Reads an object reference. |
protected Value |
readValue()
Reads a value from the input stream. |
void |
run()
|
void |
sendMessage(int msg,
int ack,
java.util.List<Value> args)
Sends a message. |
protected void |
writeValue(Value value)
Writes the given value on the output stream. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CMD_CONTINUE
public static final int CMD_STEP
public static final int CMD_STEP_OVER
public static final int CMD_FINISH
public static final int CMD_GET
public static final int CMD_SET
public static final int CMD_CALL
public static final int CMD_SET_BP
public static final int CMD_UNSET_BP
public static final int CMD_DISASSEMBLE
public static final int CMD_QUERY
public static final int MSG_STOPPED
public static final int MSG_ANS
public static final int MSG_DISAS_CODE
public static final int MSG_TERMINATED
public static final int TYPE_BOOLEAN
BooleanValue
.
public static final int TYPE_INTEGER
IntegerValue
.
public static final int TYPE_STRING
StringValue
.
public static final int TYPE_OBJECT
public static final int TYPE_NULL
NullValue
.
public static final int TYPE_REAL
RealValue
.
protected java.io.DataInputStream in
protected java.io.DataOutputStream out
Constructor Detail |
---|
public ADWP(java.io.InputStream in, java.io.OutputStream out)
in
- the input streamout
- the output streamMethod Detail |
---|
protected void writeValue(Value value) throws java.io.IOException
value
- the value to write
java.io.IOException
protected Value readValue() throws java.io.IOException
java.io.IOException
protected abstract ObjectReference readObjectReference(int id)
id
- the object id
ObjectReference
public void sendMessage(int msg, int ack, java.util.List<Value> args)
msg
- the messageack
- the ackargs
- the value argumentspublic ADWPCommand readCommand()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Thread.run()
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |