Module swim.codec
Package swim.codec

Interface Display

All Known Implementing Classes:
Diagnostic, Mark, Span, Tag

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

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

    • display

      <T> Output<T> display(Output<T> output)
      Writes a human readable, display-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 display string has been written.