Class ADWP
java.lang.Object
java.lang.Thread
org.eclipse.m2m.atl.debug.core.adwp.ADWP
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ADWPDebuggee
,ADWPDebuggee
,ADWPDebugger
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
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Call.static final int
Continues.static final int
Disassemble.static final int
Finish.static final int
Get.static final int
Query.static final int
Set.static final int
Set breakpoint.static final int
Step.static final int
Step over.static final int
Unset breakpoint.protected DataInputStream
static final int
Answer.static final int
Disassemble.static final int
Stopped.static final int
Terminated.protected DataOutputStream
static final int
static final int
static final int
static final int
Object.static final int
static final int
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionADWP
(InputStream in, OutputStream out) Creates the protocol using the given streams. -
Method Summary
Modifier and TypeMethodDescriptionReads a command.protected abstract ObjectReference
readObjectReference
(int id) Reads an object reference.protected Value
Reads a value from the input stream.void
run()
void
sendMessage
(int msg, int ack, 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, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
CMD_CONTINUE
public static final int CMD_CONTINUEContinues.- See Also:
-
CMD_STEP
public static final int CMD_STEPStep.- See Also:
-
CMD_STEP_OVER
public static final int CMD_STEP_OVERStep over.- See Also:
-
CMD_FINISH
public static final int CMD_FINISHFinish.- See Also:
-
CMD_GET
public static final int CMD_GETGet.- See Also:
-
CMD_SET
public static final int CMD_SETSet.- See Also:
-
CMD_CALL
public static final int CMD_CALLCall.- See Also:
-
CMD_SET_BP
public static final int CMD_SET_BPSet breakpoint.- See Also:
-
CMD_UNSET_BP
public static final int CMD_UNSET_BPUnset breakpoint.- See Also:
-
CMD_DISASSEMBLE
public static final int CMD_DISASSEMBLEDisassemble.- See Also:
-
CMD_QUERY
public static final int CMD_QUERYQuery.- See Also:
-
MSG_STOPPED
public static final int MSG_STOPPEDStopped.- See Also:
-
MSG_ANS
public static final int MSG_ANSAnswer.- See Also:
-
MSG_DISAS_CODE
public static final int MSG_DISAS_CODEDisassemble.- See Also:
-
MSG_TERMINATED
public static final int MSG_TERMINATEDTerminated.- See Also:
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN- See Also:
-
TYPE_INTEGER
public static final int TYPE_INTEGER- See Also:
-
TYPE_STRING
public static final int TYPE_STRING- See Also:
-
TYPE_OBJECT
public static final int TYPE_OBJECTObject.- See Also:
-
TYPE_NULL
public static final int TYPE_NULL- See Also:
-
TYPE_REAL
public static final int TYPE_REAL- See Also:
-
in
-
out
-
-
Constructor Details
-
ADWP
Creates the protocol using the given streams.- Parameters:
in
- the input streamout
- the output stream
-
-
Method Details
-
writeValue
Writes the given value on the output stream.- Parameters:
value
- the value to write- Throws:
IOException
-
readValue
Reads a value from the input stream.- Returns:
- the value.
- Throws:
IOException
-
readObjectReference
Reads an object reference.- Parameters:
id
- the object id- Returns:
- the
ObjectReference
-
sendMessage
Sends a message.- Parameters:
msg
- the messageack
- the ackargs
- the value arguments
-
readCommand
Reads a command.- Returns:
- the command
-
run
public void run()
-