Module swim.codec
Package swim.codec

Interface Debug

All Known Implementing Classes:
InputSettings, Mark, OutputSettings, Span, Tag, UtfErrorMode

public interface Debug
Type that can output a developer readable debug string. Debug implementations may use Output.settings() to tailor the format of their debug strings. For example, debug strings may be stylized when OutputSettings.isStyled() returns true.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Output<T>
    debug(Output<T> output)
    Writes a developer readable, debug-formatted string representation of this object to output.
  • Method Details

    • debug

      <T> Output<T> debug(Output<T> output)
      Writes a developer readable, debug-formatted string representation of this object to output.
      Returns:
      the continuation of the output.
      Throws:
      OutputException - if the output exits the cont state before the full debug string has been written.