Interface CompilerConnection

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      Packet<com.sass_lang.embedded_protocol.OutboundMessage> readResponse()
      Read a OutboundMessage from the compiler.
      default void sendMessage​(int compilationId, com.sass_lang.embedded_protocol.InboundMessage inboundMessage)
      Send the given InboundMessage to the compiler.
      void sendMessage​(Packet<com.sass_lang.embedded_protocol.InboundMessage> inboundMessagePacket)
      Send the given Packet to the compiler.
    • Method Detail

      • sendMessage

        default void sendMessage​(int compilationId,
                                 com.sass_lang.embedded_protocol.InboundMessage inboundMessage)
                          throws IOException
        Send the given InboundMessage to the compiler.
        Parameters:
        compilationId - The compilationId to send.
        inboundMessage - The InboundMessage to send.
        Throws:
        IOException - If the communication with the compiler fails.
      • sendMessage

        void sendMessage​(Packet<com.sass_lang.embedded_protocol.InboundMessage> inboundMessagePacket)
                  throws IOException
        Send the given Packet to the compiler.
        Parameters:
        inboundMessagePacket - The InboundMessage to send.
        Throws:
        IOException - If the communication with the compiler fails.
      • readResponse

        Packet<com.sass_lang.embedded_protocol.OutboundMessage> readResponse()
                                                                      throws IOException
        Read a OutboundMessage from the compiler.
        Returns:
        The next OutboundMessage sent by the compiler.
        Throws:
        IOException - If the communication with the compiler fails.