Class ProtocolMessage

java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.ProtocolMessage
Direct Known Subclasses:
Event, Request, Response

public class ProtocolMessage extends JSONBase
Base class of requests, responses, and events.
  • Method Details

    • getSeq

      public int getSeq()
      Sequence number (also known as message ID). For protocol messages of type 'request' this ID can be used to cancel the request.
    • setSeq

      public ProtocolMessage setSeq(int seq)
    • getType

      public String getType()
      Message type. Values: 'request', 'response', 'event', etc.
    • setType

      public ProtocolMessage setType(String type)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • create

      public static ProtocolMessage create(Integer seq, String type)