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.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCall.static final intContinues.static final intDisassemble.static final intFinish.static final intGet.static final intQuery.static final intSet.static final intSet breakpoint.static final intStep.static final intStep over.static final intUnset breakpoint.protected DataInputStreamstatic final intAnswer.static final intDisassemble.static final intStopped.static final intTerminated.protected DataOutputStreamstatic final intstatic final intstatic final intstatic final intObject.static final intstatic final intFields 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 ObjectReferencereadObjectReference(int id) Reads an object reference.protected ValueReads a value from the input stream.voidrun()voidsendMessage(int msg, int ack, List<Value> args) Sends a message.protected voidwriteValue(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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, 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()
-