Interface ISendable

All Known Subinterfaces:
IDebugResponse
All Known Implementing Classes:
AbstractResponse, BreakpointEvent, ContinuedEvent, ContinueResponse, EvaluateResponse, Event, ExitEvent, InitializeResponse, NoBodyResponse, OutputEvent, ScopeResponse, SetBreakpointsResponse, SetVariableResponse, StackTraceResponse, StoppedEvent, TerminatedEvent, ThreadEvent, ThreadsResponse, VariablesResponse

public interface ISendable
Interface for messages that will be sent to the debugger tool.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Object
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Used internally for logging
    The type; either: request, event, or response.
    default void
    Sends this object through the OutputStream
    default String
    Serialize the instance to JSON
  • Field Details

    • logger

      static final Object logger
  • Method Details

    • toJSON

      default String toJSON()
      Serialize the instance to JSON
      Returns:
    • getType

      String getType()
      The type; either: request, event, or response.
      Returns:
    • getName

      String getName()
      Used internally for logging
      Returns:
    • send

      default void send(OutputStream out)
      Sends this object through the OutputStream
      Parameters:
      out -