Class ADWP

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    ADWPDebuggee, ADWPDebuggee, ADWPDebugger

    public abstract class ADWP
    extends java.lang.Thread
    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
    • Constructor Summary

      Constructors 
      Constructor Description
      ADWP​(java.io.InputStream in, java.io.OutputStream out)
      Creates the protocol using the given streams.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      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, 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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ADWP

        public ADWP​(java.io.InputStream in,
                    java.io.OutputStream out)
        Creates the protocol using the given streams.
        Parameters:
        in - the input stream
        out - the output stream
    • Method Detail

      • writeValue

        protected void writeValue​(Value value)
                           throws java.io.IOException
        Writes the given value on the output stream.
        Parameters:
        value - the value to write
        Throws:
        java.io.IOException
      • readValue

        protected Value readValue()
                           throws java.io.IOException
        Reads a value from the input stream.
        Returns:
        the value.
        Throws:
        java.io.IOException
      • readObjectReference

        protected abstract ObjectReference readObjectReference​(int id)
        Reads an object reference.
        Parameters:
        id - the object id
        Returns:
        the ObjectReference
      • sendMessage

        public void sendMessage​(int msg,
                                int ack,
                                java.util.List<Value> args)
        Sends a message.
        Parameters:
        msg - the message
        ack - the ack
        args - the value arguments
      • readCommand

        public ADWPCommand readCommand()
        Reads a command.
        Returns:
        the command
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
        See Also:
        Thread.run()